From: Jari Williamsson Date: 2008-02-09T07:31:35+09:00 Subject: Re: alias_method and initialize Leon Bogaert wrote: > I've got a question about using alias_method with a class and a module. > The module gets included by the class. But I can't figure out how to > deal with the initialize method. > > This is my script with output: > http://pastie.caboo.se/149491 > > Why isn't tests[1] filled? I tried instance_eval and stuff but I don't > exactly understand what I'm supposed to do... The code in the module will not be called at all. alias_method() does not rename methods, it creates aliases. Best regards, Jari Williamsson