Class: Raf::Desc

Inherits:
Element show all
Defined in:
lib/raf2html_element.rb

Instance Method Summary collapse

Methods inherited from Element

#inline_parse_to_str, #newline_to_br

Instance Method Details

#applyObject



107
108
109
110
111
112
# File 'lib/raf2html_element.rb', line 107

def apply
  str = %[<dl id="#{@contents[0].to_code}">\n<dt>#{@contents[0]}</dt>\n]
  str += "<dd>#{inline_parse_to_str(@contents[1])}</dd>\n" unless inline_parse_to_str(@contents[1]).empty?
  str += "</dl>"
  str
end