如何在下面的代码中从 Up 类中获取 Base 的“hello”方法?
class Base
def hello
p 'hello from Base'
end
end
class Up < Base
def hello_orig
# how to call hello from Base class?
end
def hello
p 'hello from Up'
end
end
u = Up.new
u.hello_orig # should return 'hello from Base'