Sha256: 673c5529f446ed79ec781afcd4ad6a03bc2e89758af92f666590867323acd047
Contents?: true
Size: 1.7 KB
Versions: 41
Compression:
Stored size: 1.7 KB
Contents
# HTML writer # distribution # History: # Stan Smith 2018-01-29 add liabilityStatement # Stan Smith 2017-04-04 original script require_relative 'html_distributor' module ADIWG module Mdtranslator module Writers module Html class Html_Distribution def initialize(html) @html = html end def writeHtml(hDistribution) # classes used distributorClass = Html_Distributor.new(@html) # distribution - description unless hDistribution[:description].nil? @html.em('Description:') @html.section(:class => 'block') do @html.text!(hDistribution[:description]) end end # distribution - liability statement unless hDistribution[:liabilityStatement].nil? @html.em('Liability Statement:') @html.section(:class => 'block') do @html.text!(hDistribution[:liabilityStatement]) end end # distribution - distributor [] {distributor} hDistribution[:distributor].each do |hDistributor| @html.details do @html.summary('Distributor', {'class' => 'h5'}) @html.section(:class => 'block') do distributorClass.writeHtml(hDistributor) end end end end # writeHtml end # Html_Distribution end end end end
Version data entries
41 entries across 41 versions & 1 rubygems