We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f9efa8c + 308a163 commit 7eb8448Copy full SHA for 7eb8448
1 file changed
lib/tree.rb
@@ -934,7 +934,7 @@ def <=>(other)
934
# @param [Integer] max_depth optional maximum depth at which the printing
935
# with stop.
936
# @param [Proc] block optional block to use for rendering
937
- def print_tree(level = 0, max_depth = nil,
+ def print_tree(level = node_depth, max_depth = nil,
938
block = lambda { |node, prefix|
939
puts "#{prefix} #{node.name}" })
940
prefix = ''
0 commit comments