Name

FalseClass — False class

Synopsis

The only instance of FalseClass is false. FalseClass provides a few logical operations, which do evaluate both operands before, unlike && or || operators.

Instance Methods

false & other

Logical AND, without short circuit behavior

false | other

Logical OR, without short circuit behavior

false ^ other

Exclusive Or (XOR)

Get Ruby in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.