We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9efa8c commit 308a163Copy full SHA for 308a163
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