class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher

@private

def ===(value)

def ===(value)
  @methods_to_respond_to.all? { |message| value.respond_to?(message) }
end

def description

def description
  "duck_type(#{@methods_to_respond_to.map(&:inspect).join(', ')})"
end

def initialize(*methods_to_respond_to)

def initialize(*methods_to_respond_to)
  @methods_to_respond_to = methods_to_respond_to
end