class RSpec::Mocks::AnyInstance::FluentInterfaceProxy

of the ‘any_instance` klass).
return values and N `MessageExpectation` instances (one per instance
`targets` will typically contain 1 of the `AnyInstance::Recorder`
expectations when dealing with `any_instance`.
provide the fluent interface that is available off of message
Delegates messages to each of the given targets in order to
@private

def initialize(targets)

def initialize(targets)
  @targets = targets
end

def method_missing(*args, &block)

def method_missing(*args, &block)
  return_values = @targets.map { |t| t.__send__(*args, &block) }
  FluentInterfaceProxy.new(return_values)
end

def respond_to?(method_name, include_private=false)

def respond_to?(method_name, include_private=false)
  super || @targets.first.respond_to?(method_name, include_private)
end

def respond_to_missing?(method_name, include_private=false)

def respond_to_missing?(method_name, include_private=false)
  super || @targets.first.respond_to?(method_name, include_private)
end