From: ts Date: 2001-08-20T22:30:29+09:00 Subject: [ruby-talk:20022] Re: Module#include and module/class methods >>>>> "M" == Michael Witrant writes: M> module Foo module Intern def bar; puts "Foo.bar"; end end M> def bar; puts "Foo#bar"; end M> def Foo.append_features(mod) M> super M> mod.extend Foo_class_methods mod.extend Intern M> end M> end M> class A M> include Foo M> end M> A.bar #=> Foo.bar M> A.new.bar #=> Foo#bar Guy Decoux