From: "Jan E." Date: 2012-04-16T23:44:08+09:00 Subject: Re: Operator overloading of the subscript operator Robert Klemme wrote in post #1056723: > On Sat, Apr 14, 2012 at 5:03 PM, Jan E. wrote: > >> You won't find this in the Ruby API, because it's a core feature of the >> language and not some special property of a method. > > Err, what? > > $ ri19 -T Array#[]= > Array#[]= The OP asked about the assignment expression being interpreted as a method call: Ralph Shnelvar wrote in post #1056479: > That is, how would I come to know that > x.[]=(2, 'Tuesday') > is equivalent to > x[2]='Tuesday' It wasn't about the built-in definitions of this method (which can of course be looked up at ruby-doc.org or wherever -- but I'm sure the OP already knew that). -- Posted via http://www.ruby-forum.com/.