class RSpec::Matchers::BuiltIn::Cover
@api private Provides the implementation for ‘cover`. Not intended to be instantiated directly.
Public Class Methods
# File rspec-expectations/lib/rspec/matchers/built_in/cover.rb, line 8 def initialize(*expected) @expected = expected end
Public Instance Methods
# File rspec-expectations/lib/rspec/matchers/built_in/cover.rb, line 17 def does_not_match?(range) @actual = range expected.none? { |e| range.cover?(e) } end
# File rspec-expectations/lib/rspec/matchers/built_in/cover.rb, line 12 def matches?(range) @actual = range @expected.all? { |e| range.cover?(e) } end