From: "Paul A." Date: 2009-12-31T07:13:13+09:00 Subject: Index of an array containing an instance, from this instance Hi, If I do this: class Foo end my_array = [] my_array[8] = Foo.new ...From Foo instance, it is possible to get the array instance using self, such with: Class Foo def test puts "the array is: #{self}" end end my_array[8].test # => the array is: (something like fooooobaaaar) ...But is that possible to get its current indice (which is 8) where Foo is stored? In other words, how can I get the current indice of the array from Foo instance? Thanks -- Posted via http://www.ruby-forum.com/.