3 ms·
Here's a ruby solution that only affects 2+2: class Fixnum alias_method :old_plus, :+ def +(other) return 5 if (self == 2 && other == 2
by hpvic03 12y ago
Here's a ruby solution that only affects 2+2:
class Fixnum
alias_method :old_plus, :+
def +(other)
return 5 if (self == 2 && other == 2)
old_plus(other)
end
end