Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_RangeElementDescription
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_RangeElementDescription
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_RangeElementDescription
constructor
A new instance of Html_RangeElementDescription.
- #writeHtml(red) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_RangeElementDescription
11 12 13 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb', line 11 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(red) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_rangeElementDescription.rb', line 15 def writeHtml(red) unless red[:name].nil? @html.em('Name:') @html.text!(red[:name]) @html.br end unless red[:definition].nil? @html.em('Definition:') @html.text!(red[:definition]) @html.br end red[:rangeElements].each do |hRangeElement| @html.em('Range Element:') @html.text!(hRangeElement) end @html.br end |