From: Ruby Rabbit Date: 2009-01-14T23:07:18+09:00 Subject: Re: Why do true and false have separate classes Jason Roelofs wrote: > On Wed, Jan 14, 2009 at 8:26 AM, Ruby Rabbit > wrote: >> >> Just wondered what the thought behind this was? >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > It's only the core philosophy of Ruby: You have objects send messages > to those objects. > If there weren't a TrueClass and FalseClass, what else would true and > false be? > > Jason I would assume one class named like "Boolean". TAke for example numbers -- there is only one Fixnum class which can have many values. Similarly i would assume one Boolean class with values true and false. -- Posted via http://www.ruby-forum.com/.