class ADIWG::Mdtranslator::Writers::Html::Html_FeatureProperty
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_featureProperties.rb, line 16 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hProperty)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_featureProperties.rb, line 20 def writeHtml(hProperty) # classes used identifierClass = Html_Identifier.new(@html) # feature properties - name [] hProperty[:featureNames].each do |feature| @html.em('Feature Name: ') @html.text!(feature) @html.br end # feature properties - description unless hProperty[:description].nil? @html.em('Description: ') @html.section(:class => 'block') do @html.text!(hProperty[:description]) end end # feature properties - identifier [] {identifier} hProperty[:identifiers].each do |hIdentifier| @html.details do @html.summary('Identifier', 'class' => 'h5') @html.section(:class => 'block') do identifierClass.writeHtml(hIdentifier) end end end # feature properties - feature scope {scopeCode} unless hProperty[:featureScope].nil? @html.em('Feature Scope Code: ') @html.text!(hProperty[:featureScope]) @html.br end # feature properties - acquisition method unless hProperty[:featureScope].nil? @html.em('Acquisition Method: ') @html.section(:class => 'block') do @html.text!(hProperty[:acquisitionMethod]) end end end