class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher

def ==(value)

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

def initialize(*methods_to_respond_to)

def initialize(*methods_to_respond_to)
  @methods_to_respond_to = methods_to_respond_to
end