Hi --

On Sun, 22 Jan 2006, Dirk Meijer wrote:

> hi all,
> what do you think of these methods:
>
> class TrueClass
>  def switch
>    false
>  end
> end
>
> class FalseClass
>  def switch
>    true
>  end
> end
>
> i think i could find some real use for this, though switch! would probably
> be even more useful..

You don't like "not"? :-)

What would switch! do?


David

-- 
David A. Black
dblack / wobblini.net

"Ruby for Rails", from Manning Publications, coming April 2006!
http://www.manning.com/books/black