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)


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

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

#ranged?Boolean

Returns:

  • (Boolean)


324
325
326
# File 'lib/frozen_record/scope.rb', line 324

def ranged?
  true
end