@H_301_1@说我有B类派生自A类
class A def method1 end def method2 end end class B < A def method1 ### invoke method2 of class A is what I want to do here end def method2 end end
#不完全与How do I call an overridden parent class method from a child class?重复,但我们似乎也想做同样的事情.