ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 22日 (土) 10:15:15 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -188,7 +188,7 @@ -In our example program we exploit the above sequential organization and the bundling together of all the children of different categories in the loop calculating the totals for the parents by iterating through their groups of children: +In our example program we exploit the above sequential organization and the bundling together of all the children of different categories in the loop calculating the totals for the parents by iterating through their groups of children and changing the "quantity" property of the GroceryItem object when it is of type product category: list.each_with_index do |e, i|