January 23rd, 2007

NotRocketSurgery is proud to bring you this time wasting tidbit: how to make 2 + 2 = 5.

1
2
3
4
5
6
7
8
9
10
11
class Fixnum
  alias_method :add, :+

  def +(n)
    if self == 2 && n == 2
      5
    else
      add(n)
    end
  end
end
1 comments »