From: Ned Konz Date: 2002-08-03T06:20:58+09:00 Subject: Re: Overriding Assignment On Friday 02 August 2002 01:55 pm, Reginald Braithwaite-Lee wrote: > I tried "def operator=", and while the compiler seems to accept the > syntax, my method is not called at run time :-( It works, but you're just not calling it the right way (though this is probably not what you wanted): class A def operator=(something) p "here i am #{something}" end end a = A.new a.operator = 123 -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE