Hi,
Actually, this isn't even a special syntax. It's just two subsequent
method calls:
(world[5])[5]
You call the [] method on world. This returns the 6th element von world,
which is an array. And on this array you again call the [] method.
It works exactly like any other method chain:
str = "abc"
puts str.reverse.upcase
···
--
Posted via http://www.ruby-forum.com/.