method
max_value
v6.1.7.7 -
Show latest stable
- Class:
ActiveModel::Type::Integer
max_value()private
No documentation available.
# File activemodel/lib/active_model/type/integer.rb, line 54
def max_value
1 << (_limit * 8 - 1) # 8 bits per byte with one bit for sign
end