class RSpec::Mocks::MethodDouble

def original_method_from_ancestor(ancestors)

def original_method_from_ancestor(ancestors)
  klass, *rest = ancestors
  klass.instance_method(@method_name).bind(@object)
rescue NameError
  raise if rest.empty?
  original_method_from_ancestor(rest)
end