class ADIWG::Mdtranslator::Writers::Html::Html_ResourceType
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_resourceType.rb, line 15 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hType)
click to toggle source
# File lib/adiwg/mdtranslator/writers/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