Sha256: 89bdb5dc2eb312daffaf7ffd9e51efa4dc25bb74ca45853b6071ac1d7f5e785a
Contents?: true
Size: 1.38 KB
Versions: 70
Compression:
Stored size: 1.38 KB
Contents
# HTML writer # attribute group # History: # Stan Smith 2017-04-02 refactored for mdTranslator 2.0 # Stan Smith 2015-08-21 original script require_relative 'html_attribute' module ADIWG module Mdtranslator module Writers module Html class Html_AttributeGroup def initialize(html) @html = html end 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 # writeHtml end # Html_AttributeGroup end end end end
Version data entries
70 entries across 70 versions & 1 rubygems