Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Include

Public Class Methods

new(*expected) click to toggle source
# File lib/rspec/matchers/built_in/include.rb, line 5
def initialize(*expected)
  @expected = expected
end

Public Instance Methods

description() click to toggle source
# File lib/rspec/matchers/built_in/include.rb, line 19
def description
  "include#{expected_to_sentence}"
end
diffable?() click to toggle source
# File lib/rspec/matchers/built_in/include.rb, line 23
def diffable?
  # Matchers do not diff well, since diff uses their inspect
  # output, which includes their instance variables and such.
  @expected.none? { |e| RSpec::Matchers.is_a_matcher?(e) }
end
does_not_match?(actual) click to toggle source
# File lib/rspec/matchers/built_in/include.rb, line 14
def does_not_match?(actual)
  @actual = actual
  perform_match(:none?, :any?, @actual, @expected)
end
matches?(actual) click to toggle source
# File lib/rspec/matchers/built_in/include.rb, line 9
def matches?(actual)
  @actual = actual
  perform_match(:all?, :all?, @actual, @expected)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.