instance method
in_range?
Ruby on Rails 7.1.6
Since v7.1.6 Last seen in v8.0.4 PrivateSignature
in_range?(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activemodel/lib/active_model/type/integer.rb, line 85
def in_range?(value)
!value || range.member?(value)
end
Defined in activemodel/lib/active_model/type/integer.rb line 85
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Integer