class Fixnum def +(other) self + other * 2 end end
但是没有超级(基于其他错误).
如何访问原始功能?
class Fixnum alias_method :old_add,:+ def +(other) self.old_add(other) * 2 end end