class Mongoid::Matchable::Size
Performs size checking.
Public Instance Methods
_matches?(value)
click to toggle source
Return true if the attribute size is equal to the first value.
@example Do the values match?
matcher._matches?({ :key => 10 })
@param [ Hash ] value The values to check.
@return [ true, false ] If a value exists.
# File lib/mongoid/matchable/size.rb, line 15 def _matches?(value) @attribute.size == value.values.first end