Module: RTFDoc::RenderAsSection
- Included in:
- ResourceDesc, Section
- Defined in:
- lib/rtfdoc.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(other) ⇒ Object
115 116 117 |
# File 'lib/rtfdoc.rb', line 115 def self.included(other) other.attr_accessor(:include_show_button) end |
Instance Method Details
#content_to_html ⇒ Object
124 125 126 |
# File 'lib/rtfdoc.rb', line 124 def content_to_html RTFDoc.markdown_to_html(@content) end |
#example_to_html ⇒ Object
128 129 130 |
# File 'lib/rtfdoc.rb', line 128 def example_to_html @example ? RTFDoc.markdown_to_html(@example) : nil end |