class Rspec::Mocks::ArgumentMatchers::DuckTypeMatcher

def ==(value)

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

def initialize(*methods_to_respond_to)

def initialize(*methods_to_respond_to)
  @methods_to_respond_to = methods_to_respond_to
end