Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/basic_support/core_ext/to_array.rb,
lib/basic_support/core_ext/to_boolean.rb
Instance Method Summary collapse
- #to_a ⇒ Object
- #to_b ⇒ Object (also: #to_bool)
Instance Method Details
#to_a ⇒ Object
2 3 4 |
# File 'lib/basic_support/core_ext/to_array.rb', line 2 def to_a Array.wrap(self) end |
#to_b ⇒ Object Also known as: to_bool
2 3 4 |
# File 'lib/basic_support/core_ext/to_boolean.rb', line 2 def to_b !self.zero? end |