7stud -- wrote:
> The characters 
> '[]=' are actually the name of a method in the Array class.  
>

To see that, you can also call the method '[]=' using the normal 
variable.method_name syntax:

monsters = []
monsters.[]=(0, 10)   #'[]=' is the name of a method

puts monsters[0]
--->10


-- 
Posted via http://www.ruby-forum.com/.