dblack / candle.superlink.net wrote:

> I get two #foo's with 1.6.7.

But whose #foo's are they?

Is this what you are doing?

   class Base
     def foo
       puts "inside Base#foo"
     end

     def self.inherited(sub)
       sub.class_eval {alias_method :bar, :foo}
     end
   end

   class Derived < Base
     def foo
       puts "inside Derived#foo"
     end
   end

   Derived.new.bar    # ==> inside Base#foo

   Derived.class_eval {alias_method :bar, :foo}

   Derived.new.bar    # ==> inside Derived#foo

So it seems that #alias_method has no effect when used within #inherited.