From: Hugh Sasse Staff Elec Eng Date: 2000-11-24T02:48:16+09:00 Subject: [ruby-talk:6559] Re: alias_method and > and < On Fri, 24 Nov 2000, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:6525] Re: alias_method and > and <" > on 00/11/23, Hugh Sasse Staff Elec Eng writes: > > |> class Fixnum > |> alias :old_lt :< > |> def <(other) > |> puts "comparing" > |> old_lt(other) > |> end > |> end > | > |OK, but how do I do that in a module? alias doesn't work there either. > |I'm trying to write this once (DRY and all that) and then include it > |in the classes where I need it. > > Use two methods of Module: > > append_feature > alias_method > > Currently I'm off. I should be off. ;-) > I don't explain it in detail, sorry. OK. I think I may have found the error: no comma between the arguments. > > matz. > Thank you, Hugh