Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Integer#integer?
() -> true
integer? → true
numeric.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/numeric.rb, line 197
def integer?
true
end
Since self is already an Integer, always returns true.