1234567891011121314151617181920212223242526272829303132 |
- module MarkdownClassAttributes
- extend ActiveSupport::Concern
- module ClassMethods
- def markdown_class_attributes(*attributes)
- attributes.each do |attribute|
- class_eval <<-RUBY
- def html_
- Kramdown::Document.new(
- end
- def
- if self.class.
- Utils.unindent(self.instance_eval(&self.class.
- else
- Utils.unindent(self.class.
- end
- end
- def self.
- if block
- @
- elsif value
- @
- end
- @
- end
- RUBY
- end
- end
- end
- end
|