From: "Iñaki Baz Castillo" Date: 2008-09-10T07:06:45+09:00 Subject: How to access a method in the parent class Hi, I'll explain my problem with an example code: ----------------------- module M def hello puts "hello !!!" B.new end class B def initialize puts "B instance initialized !!!" bye() <--- ERROR !!!! end end end class A include M def bye puts "bye !!!" end end a = A.new a.hello ----------------------- I want the following behaviour: irb> a.hello => "hello !!!" => "B instance initialized !!!" => "bye !!!" But the last bye() gives an error since, of course, "bye" is not defined in B class, but in A class. I know that if it would be: ------------------ module M def hello puts "hello !!!" bye end end irb> a.hellp ------------------ This works since "bye()" calls the "bye" method in class A. But this is not my case. How could I call A#bye method from M::B class? Thanks a lot. -- Iñaki Baz Castillo