Gavin Kistner wrote:
> On Jan 24, 2005, at 9:25 AM, Robert Klemme wrote:
> 
>>> .  def a?
>>> .    @a ? true : @a
>>> .  end
>>
>>
>> Why not "def a?() @a end"?
> 
> 
> I personally always define them as:
> def a?
>     !!@a
> end

Ick.  I know it's easy to add, but I really think there should be a 
standard Object#to_bool that returns a standard Boolean object, of which 
TrueClass and FalseClass are subclasses.

Not having them incourages this kind of hackery, which (if you know 
Ruby) is a neat trick.  If you don't know Ruby it's Perl linenoise.

Ben