From: Brian Candler Date: 2002-11-04T08:51:01+09:00 Subject: Re: Thoughts on Ruby On Mon, Nov 04, 2002 at 06:44:46AM +0900, Enric Lafont wrote: > You can... > > class TrueClass > def and (anArgument) > return "hello" > end > end > > I've redefined the and, it does not work, but it does not generate any > warning or error... I don't think you have redefined 'and', you have just added a method called 'and' to TrueClass. At least, that's the case in 1.6.7. Before adding your method above, true does not have an 'and' method: irb(main):001:0> true.and(false) NameError: undefined method `and' for true from (irb):1 irb(main):002:0> true and false false Regards, Brian.