How do I choose a particular a method call in the inheritance chain?
class A
def boo; puts "A:Boo"; end
end
class B < A
def boo; super; puts "B:Boo"; end
end
class C < B
def boo; self.A.boo(???); puts "C:Boo"; end
end
Thus the output would be A:Boo, C:Boo
TIA,
-daniel
You can do
However if you need this, that’s usually an indicator that you should rethink your design. In particular if C needs A’s implementation of
boo, maybe B should not override it.