From: ts Date: 2001-09-10T20:43:58+09:00 Subject: [ruby-talk:21029] Re: How to insert methods from one module to another? >>>>> "A" == Aristarkh A Zagorodnikov writes: A> I need module B to have singleton method method_1 which is really A> A.method_1 1) You make, for me, something strange (C++, no ? :-))) 2) if you *really* need *only* this, you can try pigeon% cat b.rb #!/usr/bin/ruby module AB def method_1 puts "method_1" end end module A extend AB def self.method_2 puts "method_2" end end module B extend AB end A.method_1 B.method_1 pigeon% pigeon% b.rb method_1 method_1 pigeon% p.s.: I hope that you don't want something more complex :-))) Guy Decoux