nobu.nokada / softhome.net wrote: > Hi, > > At Fri, 18 Jul 2003 14:10:24 +0900, > Jim Cain wrote: > >>Notice that, in the class where the method is "hello=" rather than >>"hello", the call to the old method fails somehow. Its output is skipped. > > > 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.