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



180
181
182
# File 'lib/rtfdoc.rb', line 180

def self.included(other)
  other.attr_accessor(:include_show_button)
end

Instance Method Details

#content_to_htmlObject



189
190
191
# File 'lib/rtfdoc.rb', line 189

def content_to_html
  RTFDoc.markdown_to_html(@content)
end

#example_to_htmlObject



193
194
195
# File 'lib/rtfdoc.rb', line 193

def example_to_html
  @example ? RTFDoc.markdown_to_html(@example) : nil
end