From: Jason Creighton Date: 2003-07-19T00:04:41+09:00 Subject: Re: Aliased setter methods behave differently than other methods? On Fri, 18 Jul 2003 23:19:37 +0900 Jim Cain wrote: > > enalias for hello= will be excuted as bellow: > > > > alias_method(('old_hello=').intern, 'hello='.intern) > > module_eval <<-EOF > > def hello=(arg) > > puts 'hola ' + arg > > old_hello=(arg) # just local variable assignment. > > end > > EOF > > > > Of course! Duh. I stared and stared at that one and never saw it from > Ruby's point of view. Now I just have to figure out how to make it look > like a method call. Wouldn't self.method_name_here=(arg) do the trick? Jason Creighton