Class: TrueClass
- 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 ⇒ true
(also: #to_b, #to_bool!, #to_b!)
Respecting the Ruby way.
-
#to_num ⇒ Object
1.
Instance Method Details
#to_bool ⇒ true Also known as: to_b, to_bool!, to_b!
Returns respecting the Ruby way.
84 85 86 |
# File 'lib/a_types/core_ext/boolean.rb', line 84 def to_bool self end |
#to_num ⇒ Object
Returns 1.
44 45 46 |
# File 'lib/a_types/core_ext/numeric.rb', line 44 def to_num 1 end |