ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 23日 (木) 07:32:34 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-rr ------------------------- @@ -28,7 +28,7 @@ You can convert a path object to string with the usual to_str method: - puts "Path=#{path.to_str}" + puts "Path=#{path.to_str}" # => Path=1:2 You may want to convert a path to an array of indices: @@ -38,6 +38,7 @@ Returns the current indices of path. This is an array of integers, each representing a node in a tree. This value should not be freed. * Returns : The current indices, or nil. + puts "Array=#{path.indices}" # => Array=[1, 2] === Tree Iterators