From: 7stud -- Date: 2007-11-10T10:06:42+09:00 Subject: Re: undefined local variable or method (filling an array) 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/.