Parent

Included Modules

Files

RSpec::Matchers::Cover

Public Class Methods

new(*expected) click to toggle source
# File lib/rspec/matchers/cover.rb, line 6
def initialize(*expected)
  super(expected)
end

Public Instance Methods

does_not_match?(range) click to toggle source
# File lib/rspec/matchers/cover.rb, line 14
def does_not_match?(range)
  @actual = range
  expected.none? {|e| range.cover?(e)}
end
matches?(range) click to toggle source
# File lib/rspec/matchers/cover.rb, line 10
def matches?(range)
  expected.all? {|e| super(range).cover?(e)}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.