Class: Object

Inherits:
BasicObject
Defined in:
lib/boolean.rb

Instance Method Summary collapse

Instance Method Details

#to_booltrue, false

Returns the typecasted value of this object. This would be @true@ for all objects except @false@ and @nil@, which type-cast to @false@.

Returns:

  • (true, false)

    The typecast value of this object.



66
# File 'lib/boolean.rb', line 66

def to_bool() true end