2009-04-01 8 views

答えて

19

ああ、それを得ました。

each_with_index 

woo!

編集:whoops!

1

完全性のためです。

Thing.each_with_index {|obj, index_num| puts [obj, index_num].join(" has an index of ")} 
関連する問題