instance method
max_value
Ruby on Rails 7.2.3
Since v7.1.6 PrivateSignature
max_value()
No documentation comment.
Source
# File activemodel/lib/active_model/type/integer.rb, line 100
def max_value
1 << (_limit * 8 - 1) # 8 bits per byte with one bit for sign
end
Defined in activemodel/lib/active_model/type/integer.rb line 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Integer