Class: FrozenRecord::Scope::CoverMatcher

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)


342
343
344
# File 'lib/frozen_record/scope.rb', line 342

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

#ranged?Boolean

Returns:

  • (Boolean)


338
339
340
# File 'lib/frozen_record/scope.rb', line 338

def ranged?
  true
end