Class: Numeric
Instance Method Summary collapse
-
#parse_bool ⇒ true, false
Returns the parsed value of this object.
- #to_b ⇒ Object
Instance Method Details
#parse_bool ⇒ true, false
Returns the parsed value of this object. Numbers equal to zero are considered @false@; all others are considered @true@.
120 |
# File 'lib/boolean.rb', line 120 def parse_bool() not zero? end |