From: Robert Klemme Date: 2007-10-10T01:55:10+09:00 Subject: Re: Make a class evaluate to false in boolean expressions On 09.10.2007 18:12, Logan Capaldo wrote: > On 10/9/07, Matt Margolis wrote: >> Logan Capaldo wrote: >>> On 10/9/07, Matt Margolis wrote: >>>> Is achieving this behavior as simple as redefining some operator methods >>>> like == or is this sort of behavior not possible in Ruby? >>>> >>>> >>> The latter. >>> > > Quoting myself. In other words, no you can't do it. An alternative approach might be to use 'case' expressions instead of 'if' and implement #=== properly in that class. Matt, what are you implementing? Why is this functionality crucial? Kind regards robert