Class: Treely::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/treely/tree.rb

Instance Method Summary collapse

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_sObject



9
10
11
# File 'lib/treely/tree.rb', line 9

def to_s
  @contents
end