instance method
==
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
==(other)
No documentation comment.
Parameters
-
otherreq
Source
# File activemodel/lib/active_model/type/value.rb, line 109
def ==(other)
self.class == other.class &&
precision == other.precision &&
scale == other.scale &&
limit == other.limit
end
Defined in activemodel/lib/active_model/type/value.rb line 109
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Type::Value