Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/bart_api/core_ext/integer.rb
Class Method Summary collapse
Class Method Details
.new(numeric) ⇒ Object
2 3 4 |
# File 'lib/bart_api/core_ext/integer.rb', line 2 def self.new numeric numeric.to_i if numeric.respond_to? :to_i end |