class A
def a
puts 'in #a'
end
end
class B < A
def a
b()
end
def b
# here i want to call A#a.
end
end
发布于 2018-03-28 16:31:08
class B < A
alias :super_a :a
def a
b()
end
def b
super_a()
end
end
https://stackoverflow.com/questions/-100007842
复制相似问题