instance method
out_of_range?
Ruby on Rails edge
Since v8.1.3.1 Private — implementation detail, not part of the public APIAvailable in: v8.1.3.1 edge
Signature
out_of_range?(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/integer.rb, line 104
def out_of_range?(value)
if @max.nil?
@max = max_value
@min = min_value
end
value && (@max <= value || @min > value)
end
Defined in activemodel/lib/active_model/type/integer.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Integer