Why would that be nice?  :)

Bill

On Sat, 30 Oct 2004 00:10:49 +0900, Mohammad Khan <mkhan / lextranet.com> wrote:
> Wouldn't it be nice to have two more methods true? and false? like nil?
> in Object.
> 
> n = NilClass.new
> t = TrueClass.new
> f = FalseClass.new
> 
> n.nil? -> true
> t.nil? -> false
> f.nil? -> false
> 
> n.true? -> false
> t.true? -> true
> f.true? -> false
> 
> n.false -> false
> t.false -> false
> f.false -> true
> 
> Thanks,
> Mohammad
> 
>