Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Include

@api private Provides the implementation for `include`. Not intended to be instantiated directly.

Public Class Methods

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

Public Instance Methods

description() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/include.rb, line 28
def description
  described_items = surface_descriptions_in(expected)
  improve_hash_formatting "include#{to_sentence(described_items)}"
end
diffable?() click to toggle source

@api private @return [Boolean]

# File lib/rspec/matchers/built_in/include.rb, line 47
def diffable?
  true
end
does_not_match?(actual) click to toggle source

@api private @return [Boolean]

# File lib/rspec/matchers/built_in/include.rb, line 21
def does_not_match?(actual)
  @actual = actual
  perform_match(:none?, :any?)
end
failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/include.rb, line 35
def failure_message
  improve_hash_formatting(super) + invalid_type_message
end
failure_message_when_negated() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/include.rb, line 41
def failure_message_when_negated
  improve_hash_formatting(super) + invalid_type_message
end
matches?(actual) click to toggle source

@api private @return [Boolean]

# File lib/rspec/matchers/built_in/include.rb, line 14
def matches?(actual)
  @actual = actual
  perform_match(:all?, :all?)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.