From: "Stéphane Wirtel" Date: 2008-02-22T04:59:55+09:00 Subject: Re: How to define the assignment operator in Ruby ? > Stephanie, Stephane and not Stephanie :-) Stephanie is the firstname for a girl :) > > In ruby, we don't assign to an instance as you mentioned, we assign to a > variable that can hold any type. We therefore can't override the > assignment operator. > > BUT you can override an assignment operation.. such as > > class Foo > def bar= (val) > @bar = val > p "I am assigning #{val} to @bar" > end Grrr, so I have reason about this operator, I can't override it. Thanks