The integer? method comes from the Numeric class : Numeric class « Number « Ruby
- Ruby
- Number
- Numeric class
The integer? method comes from the Numeric class
12.integer? # => true
12.0.integer? # => false
-1.integer? # => true
-12.integer? # => true
Related examples in the same category