Class: FrozenRecord::Scope::IncludeMatcher

Inherits:
Matcher
  • Object
show all
Defined in:
lib/frozen_record/scope.rb

Instance Attribute Summary

Attributes inherited from Matcher

#value

Instance Method Summary collapse

Methods inherited from Matcher

#==, for, #hash, #initialize

Constructor Details

This class inherits a constructor from FrozenRecord::Scope::Matcher

Instance Method Details

#match?(other) ⇒ Boolean

Returns:

  • (Boolean)


333
334
335
# File 'lib/frozen_record/scope.rb', line 333

def match?(other)
  @value.include?(other)
end

#ranged?Boolean

Returns:

  • (Boolean)


329
330
331
# File 'lib/frozen_record/scope.rb', line 329

def ranged?
  true
end