class FrozenRecord::Scope::Matcher
Attributes
value[R]
Public Class Methods
for(value)
click to toggle source
# File lib/frozen_record/scope.rb, line 272 def for(value) case value when Array IncludeMatcher.new(value) when Range CoverMatcher.new(value) else new(value) end end
new(value)
click to toggle source
# File lib/frozen_record/scope.rb, line 290 def initialize(value) @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/frozen_record/scope.rb, line 302 def ==(other) self.class == other.class && value == other.value end
Also aliased as: eql?
hash()
click to toggle source
# File lib/frozen_record/scope.rb, line 286 def hash self.class.hash ^ value.hash end
match?(other)
click to toggle source
# File lib/frozen_record/scope.rb, line 298 def match?(other) @value == other end
ranged?()
click to toggle source
# File lib/frozen_record/scope.rb, line 294 def ranged? false end