Sha256: 52f43c214c1202bdf190fc7dc7fe70957358f11fb776b119450639cd7ad410e8
Contents?: true
Size: 1.44 KB
Versions: 86
Compression:
Stored size: 1.44 KB
Contents
# HTML writer # classed data # History: # Stan Smith 2015-08-21 original script require_relative 'html_classedDataItem' module ADIWG module Mdtranslator module Writers module Html class MdHtmlClassedData def initialize(html) @html = html end def writeHtml(hClassD) # classes used htmlClassItem = MdHtmlClassedDataItem.new(@html) # classed data - number of classes s = hClassD[:numberOfClasses] if !s.nil? @html.em('Number of classes: ') @html.text!(s.to_s) @html.br end # classed data - data items aClassItems = hClassD[:classedDataItems] aClassItems.each do |hClassItem| @html.details do @html.summary(hClassItem[:className], {'class'=>'h5'}) @html.section(:class=>'block') do htmlClassItem.writeHtml(hClassItem) end end end end # writeHtml end # class end end end end
Version data entries
86 entries across 86 versions & 1 rubygems