Class: ADIWG::Mdtranslator::Writers::Simple_html::MdHtmlResourceFormat
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::MdHtmlResourceFormat
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ MdHtmlResourceFormat
constructor
A new instance of MdHtmlResourceFormat.
- #writeHtml(hResFormat) ⇒ Object
Constructor Details
#initialize(html) ⇒ MdHtmlResourceFormat
Returns a new instance of MdHtmlResourceFormat.
13 14 15 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb', line 13 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hResFormat) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceFormat.rb', line 17 def writeHtml(hResFormat) # resource format - name - required unless hResFormat[:formatName].nil? @html.em('Resource Format: ') @html.text!(hResFormat[:formatName]) end # resource format - version unless !hResFormat[:formatVersion].nil? @html.em(' Version: ') @html.text!(hResFormat[:formatVersion]) end @html.br end |