Class: TrueClass
- Inherits:
-
Object
- Object
- TrueClass
- Defined in:
- lib/basic_support/core_ext/to_boolean.rb,
lib/basic_support/core_ext/to_integer.rb
Instance Method Summary collapse
- #to_b ⇒ Object (also: #to_bool)
- #to_i ⇒ Object (also: #to_integer)
Instance Method Details
#to_b ⇒ Object Also known as: to_bool
10 11 12 |
# File 'lib/basic_support/core_ext/to_boolean.rb', line 10 def to_b self end |
#to_i ⇒ Object Also known as: to_integer
2 3 4 |
# File 'lib/basic_support/core_ext/to_integer.rb', line 2 def to_i 1 end |