Class: Numeric

Inherits:
Object show all
Defined in:
lib/boolean.rb

Instance Method Summary collapse

Instance Method Details

#parse_booltrue, false

Returns the parsed value of this object. Numbers equal to zero are considered @false@; all others are considered @true@.

Returns:

  • (true, false)

    The parsed Boolean value of this number.



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

def parse_bool() not zero? end

#to_bObject

See Also:



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

def to_b() not zero? end