class RSpec::Matchers::Include

Public Class Methods

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

Public Instance Methods

description() click to toggle source
# File lib/rspec/matchers/include.rb, line 19
def description
  "include#{expected_to_sentence}"
end
diffable?() click to toggle source
# File lib/rspec/matchers/include.rb, line 23
def diffable?
  true
end
does_not_match?(actual) click to toggle source
# File lib/rspec/matchers/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/include.rb, line 10
def matches?(actual)
  perform_match(:all?, :all?, super(actual), expected)
end