class FrozenRecord::Scope::Matcher
Attributes
value[R]
Public Class Methods
for(value)
click to toggle source
# File lib/frozen_record/scope.rb, line 292 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 310 def initialize(value) @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/frozen_record/scope.rb, line 322 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 306 def hash self.class.hash ^ value.hash end
match?(other)
click to toggle source
# File lib/frozen_record/scope.rb, line 318 def match?(other) @value == other end
ranged?()
click to toggle source
# File lib/frozen_record/scope.rb, line 314 def ranged? false end