From: matz@... (Yukihiro Matsumoto) Date: 2000-11-24T01:30:07+09:00 Subject: [ruby-talk:6555] Re: alias_method and > and < 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. matz.