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
130 131 132 |
# File 'lib/rtfdoc.rb', line 130 def self.included(other) other.attr_accessor(:include_show_button) end |
Instance Method Details
#content_to_html ⇒ Object
139 140 141 |
# File 'lib/rtfdoc.rb', line 139 def content_to_html RTFDoc.markdown_to_html(@content) end |
#example_to_html ⇒ Object
143 144 145 |
# File 'lib/rtfdoc.rb', line 143 def example_to_html @example ? RTFDoc.markdown_to_html(@example) : nil end |