Sha256: b67eff5a593812f061c9b6fc9fab67118e3faa541ff0b0253bff4ef5aac47844
Contents?: true
Size: 1.66 KB
Versions: 19
Compression:
Stored size: 1.66 KB
Contents
# HTML writer # scope # History: # Stan Smith 2017-03-25 original script require_relative 'html_scopeDescription' require_relative 'html_extent' module ADIWG module Mdtranslator module Writers module Simple_html class Html_Scope def initialize(html) @html = html end def writeHtml(hScope) # classes used descriptionClass = Html_ScopeDescription.new(@html) extentClass = Html_Extent.new(@html) # scope - code unless hScope[:scopeCode].nil? @html.em('Scope Code: ') @html.text!(hScope[:scopeCode]) @html.br end # scope - description [] {scopeDescription} hScope[:scopeDescriptions].each do |hDescription| @html.div do @html.h5('Description', {'class' => 'h5'}) @html.div(:class => 'block') do descriptionClass.writeHtml(hDescription) end end end # scope - extent [] {extent} hScope[:extents].each do |hExtent| @html.div do @html.h5('Extent', {'class' => 'h5'}) @html.div(:class => 'block') do extentClass.writeHtml(hExtent) end end end end # writeHtml end # Html_Scope end end end end
Version data entries
19 entries across 19 versions & 1 rubygems