The global value true is the only instance of class TrueClass and represents a logically true value in boolean expressions. The class provides operators allowing true to be used in logical expressions.
true
TrueClass
true | obj â true Instance Public methods OrâReturns true. As
true ^ obj â !obj Instance Public methods Exclusive OrâReturns true
true.to_s â "true" Instance Public methods The string representation of
inspect() Instance Public methods Alias for:
true & obj â true or false Instance Public methods AndâReturns false