method
max_value
v8.1.1 -
Show latest stable
- Class:
ActiveModel::Type::Integer
max_value()private
No documentation available.
# 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