Parent

Files

RSpec::Mocks::AnyInstance::Chain

Public Instance Methods

constrained_to_any_of?(*constraints) click to toggle source

@private

# File lib/rspec/mocks/any_instance/chain.rb, line 46
def constrained_to_any_of?(*constraints)
  constraints.any? do |constraint|
    messages.any? do |message|
      message.first.first == constraint
    end
  end
end
expectation_fulfilled!() click to toggle source

@private

# File lib/rspec/mocks/any_instance/chain.rb, line 55
def expectation_fulfilled!
  @expectation_fulfilled = true
end
playback!(instance) click to toggle source

@private

# File lib/rspec/mocks/any_instance/chain.rb, line 39
def playback!(instance)
  messages.inject(instance) do |_instance, message|
    _instance.__send__(*message.first, &message.last)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.