Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_ScopeDescription

Inherits:
Object
  • Object
show all
Defined in:
lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ Html_ScopeDescription

Returns a new instance of Html_ScopeDescription.



14
15
16
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb', line 14

def initialize(html)
   @html = html
end

Instance Method Details

#writeHtml(hDescription) ⇒ Object



18
19
20
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
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_scopeDescription.rb', line 18

def writeHtml(hDescription)

   # scope description - dataset
   unless hDescription[:dataset].nil?
      @html.em('Dataset(s) to which Scope applies: ')
      @html.text!(hDescription[:dataset])
      @html.br
   end

   # scope description - attributes
   unless hDescription[:attributes].nil?
      @html.em('Attributes(s) to which Scope applies: ')
      @html.text!(hDescription[:attributes])
      @html.br
   end

   # scope description - features
   unless hDescription[:features].nil?
      @html.em('Features(s) to which Scope applies: ')
      @html.text!(hDescription[:features])
      @html.br
   end

   # scope description - other
   unless hDescription[:other].nil?
      @html.em('Other item(s) to which Scope applies: ')
      @html.text!(hDescription[:other])
      @html.br
   end

end