Class: FalseClass
- Defined in:
- lib/a_types/core_ext/boolean.rb,
lib/a_types/core_ext/numeric.rb
Overview
Numeric Additions.
Instance Method Summary collapse
-
#to_bool ⇒ false
(also: #to_b, #to_bool!, #to_b!)
Respecting the Ruby way.
-
#to_num ⇒ Object
-1.
Instance Method Details
#to_bool ⇒ false Also known as: to_b, to_bool!, to_b!
Returns respecting the Ruby way.
96 97 98 |
# File 'lib/a_types/core_ext/boolean.rb', line 96 def to_bool self end |
#to_num ⇒ Object
Returns -1.
53 54 55 |
# File 'lib/a_types/core_ext/numeric.rb', line 53 def to_num -1 end |