Skip to content

Commit e0157a9

Browse files
committed
[docs][ci skip] Update README
1 parent 88b7299 commit e0157a9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

lib/tree_support/node.rb

+10-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,16 @@ class << self
7070
# {key: :c, parent: :b},
7171
# ]
7272
#
73-
# puts TreeSupport.records_to_tree(records).to_s_tree
74-
# a
75-
# └─b
76-
# └─c
77-
# └─d
73+
# puts TreeSupport.records_to_tree(records, root_key: :root).to_s_tree
74+
# >> root
75+
# >> └─a
76+
# >> ├─b
77+
# >> ├─c
78+
#
79+
# puts TreeSupport.records_to_tree(records).first.to_s_tree
80+
# >> a
81+
# >> ├─b
82+
# >> ├─c
7883
#
7984
# Be sure to have one route
8085
#

0 commit comments

Comments
 (0)