From: ts Date: 2003-06-01T19:09:43+09:00 Subject: [1.8] alias I still don't understand alias, normal this ? svg% cat b.rb #!./ruby -v module M def init(a) p "M #{a}" end end class A include M def init(a) p "A : #{a}" super 12 end end module N def init(a) p "N #{a}" super 12 end alias_method :abc, :init end class B < A include N def init(a) p "B#init" super end def abc(b) p "abc" super end end puts "=======================" b = B.new b.init(24) puts "=======================" b.abc(36) svg% svg% b.rb ruby 1.8.0 (2003-06-01) [i686-linux] ======================= "B#init" "N 24" "A : 12" "M 12" ======================= "abc" "N 36" ./b.rb:22:in `abc': method `init' called on terminated object (0x40099038) (NotImplementedError) from ./b.rb:36:in `abc' from ./b.rb:44 svg% Guy Decoux