Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_ResourceType

Inherits:
Object
  • Object
show all
Defined in:
lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ Html_ResourceType

Returns a new instance of Html_ResourceType.



15
16
17
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb', line 15

def initialize(html)
   @html = html
end

Instance Method Details

#writeHtml(hType) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_resourceType.rb', line 19

def writeHtml(hType)

   # resource type - (required)
   unless hType[:type].nil?
      @html.em('Resource Type: ')
      @html.text!(hType[:type])
      unless hType[:name].nil?
         @html.em(' Name: ')
         @html.text!(hType[:name])
      end
      @html.br
   end

end