ruby: Add method_ancestors to find ancestors with the named method.