The integer? method comes from the Numeric class
12.integer? # => true 12.0.integer? # => false -1.integer? # => true -12.integer? # => true