instance method
max_value
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
max_value()
No documentation comment.
Source
# File activemodel/lib/active_model/type/integer.rb, line 112
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 112
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Integer