class FalseClass < Object

The global value false is the only instance of class FalseClass and represents a logically false value in boolean expressions. The class provides operators allowing false to participate correctly in logical expressions.

instance methods

&
false & anObjectfalse
And—Returns false. anObject is always evaluated as it is the argument to a method call—there is no short-circuit evaluation in this case.
^
false ^ anObjecttrue or false
Exclusive Or—If anObject is nil or false, returns false; otherwise, returns true.
|
false | anObjecttrue or false
Or—Returns false if anObject is nil or false; true otherwise.
Show this content in its own window