class ADIWG::Mdtranslator::Writers::Html::MdHtmlResourceFormat

Public Class Methods

new(html) click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_resourceFormat.rb, line 13
def initialize(html)
   @html = html
end

Public Instance Methods

writeHtml(hResFormat) click to toggle source
# File lib/adiwg/mdtranslator/writers/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