class ADIWG::Mdtranslator::Writers::Html::Html_AttributeGroup
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_attributeGroup.rb, line 17 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hGroup)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_attributeGroup.rb, line 21 def writeHtml(hGroup) # classes used attributeClass = Html_Attribute.new(@html) # attribute group - content type [] {CoverageContentTypeCode} hGroup[:attributeContentTypes].each do |type| @html.em('Content Type: ') @html.text!(type) @html.br end # attribute group - attribute [] {attribute} counter = 0 hGroup[:attributes].each do |hAttribute| @html.details do counter += 1 @html.summary('Attribute '+counter.to_s, {'class' => 'h5'}) @html.section(:class => 'block') do attributeClass.writeHtml(hAttribute) end end end end