From: "trans. (T. Onoma)" Date: 2004-10-30T01:01:36+09:00 Subject: Re: true? & false? On Friday 29 October 2004 11:55 am, Mohammad Khan wrote: | On Fri, 2004-10-29 at 11:48, Bill Atkins wrote: | > Well, all Objects must be nil or non-nil, but the idea of true/false | > doesn't apply to all objects. | | I agree with you on this point. | | I would ask, | If I would like to have true? and false? | what would be best class to put in? But it must be responded to by all classes. # true?&false?.rb # As suggested by Mohammad Khan class Object def true? ; false ; end def false? ; false ; end end class TrueClass def true? ; true ; end end class FalseClass def false? ; true ; end end Is this what you had in mind? T.