Class: Treely::Tree
- Inherits:
-
Object
- Object
- Treely::Tree
- Defined in:
- lib/treely/tree.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ Tree
constructor
A new instance of Tree.
- #to_s ⇒ Object
Constructor Details
#initialize(source) ⇒ Tree
Returns a new instance of Tree.
3 4 5 6 7 |
# File 'lib/treely/tree.rb', line 3 def initialize(source) @style = Treely[:style] @contents = %{} treely source end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/treely/tree.rb', line 9 def to_s @contents end |