Ruby Programming/Reference/Objects/TrueClass

From Wikibooks, open books for an open world
< Ruby Programming‎ | Reference‎ | Objects
Jump to: navigation, search

The only instance of TrueClass is true.

Methods:

true & other - Logical AND, without short circuit behavior
true | other - Logical OR, without short circuit behavior
true ^ other - Logical exclusive Or (XOR)