Class: RspecTree::Tree

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

Instance Method Summary collapse

Constructor Details

#initialize(root, type) ⇒ Tree

Returns a new instance of Tree.



5
6
7
8
# File 'lib/rspec_tree/tree.rb', line 5

def initialize(root, type)
  @root = root
  @type = type
end

Instance Method Details



10
11
12
# File 'lib/rspec_tree/tree.rb', line 10

def print
  print_root_description(@root, 0)
end