Sometimes, the little things count
(by Erik Peterson on April 28th 2008)
class TrueClass def to_exclamation "Yes" end end class FalseClass def to_exclamation "No" end end (1+2 == 3).to_exclamation => "Yes" (1+1 == 4).to_exclamation => "No"
This demonstrates two things:
- Small things can matter. Even something that is seemingly inconsequential can turn into something pleasant.
- Just because something (IE monkeypatching) can be harmful, doesn't mean it always is.