Class: NavigationPane

Inherits:
Object
  • Object
show all
Defined in:
lib/almirah/navigation_pane.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(specification) ⇒ NavigationPane

Returns a new instance of NavigationPane.



6
7
8
# File 'lib/almirah/navigation_pane.rb', line 6

def initialize(specification)
    @doc = specification
end

Instance Attribute Details

#specificationsObject

Returns the value of attribute specifications.



4
5
6
# File 'lib/almirah/navigation_pane.rb', line 4

def specifications
  @specifications
end

Instance Method Details

#to_htmlObject



10
11
12
13
14
15
16
# File 'lib/almirah/navigation_pane.rb', line 10

def to_html
    if  @doc.dom
        return @doc.dom.section_tree_to_html()
    else
        return ''
    end
end