Class: NavigationPane
- Inherits:
-
Object
- Object
- NavigationPane
- Defined in:
- lib/almirah/navigation_pane.rb
Instance Attribute Summary collapse
-
#specifications ⇒ Object
Returns the value of attribute specifications.
Instance Method Summary collapse
-
#initialize(specification) ⇒ NavigationPane
constructor
A new instance of NavigationPane.
- #to_html ⇒ Object
Constructor Details
#initialize(specification) ⇒ NavigationPane
Returns a new instance of NavigationPane.
4 5 6 |
# File 'lib/almirah/navigation_pane.rb', line 4 def initialize(specification) @doc = specification end |
Instance Attribute Details
#specifications ⇒ Object
Returns the value of attribute specifications.
2 3 4 |
# File 'lib/almirah/navigation_pane.rb', line 2 def specifications @specifications end |
Instance Method Details
#to_html ⇒ Object
8 9 10 11 12 |
# File 'lib/almirah/navigation_pane.rb', line 8 def to_html return @doc.dom.section_tree_to_html if @doc.dom '' end |