Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_Scope
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_Scope
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_Scope
constructor
A new instance of Html_Scope.
- #writeHtml(hScope) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_Scope
Returns a new instance of Html_Scope.
17 18 19 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_scope.rb', line 17 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hScope) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/adiwg/mdtranslator/writers/simple_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.div do @html.div('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.div('Extent', {'class' => 'h5'}) # @html.div(:class => 'block') do # extentClass.writeHtml(hExtent) # end # end # end end |