class ADIWG::Mdtranslator::Writers::Html::Html_Scope
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb, line 17 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hScope)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_scope.rb, line 21 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.details do @html.summary('Description', {'class' => 'h5'}) @html.section(:class => 'block') do descriptionClass.writeHtml(hDescription) end end end # scope - extent [] {extent} hScope[:extents].each do |hExtent| @html.details do @html.summary('Extent', {'class' => 'h5'}) @html.section(:class => 'block') do extentClass.writeHtml(hExtent) end end end end