pyfixes/ancestor_name.rb
# If ancestor's name starts with topmost module, remove it
If ancestor's name starts with topmost module, remove it
If ancestor ' s name starts with topmost module remove it
def pyfix_ancestor_name
    if ancestor and ancestor_name.include? '::'
      first_part, *rest = ancestor_name.split '::'
      topmost_module = find_topmost_module
      if topmost_module.name == first_part
        @ancestor_name = rest.join '::'
      end
    end
    return self
  end
def pyfix_ancestor_name if ancestor and ancestor_name . include? '::' first_part , * rest = ancestor_name . split '::' topmost_module = find_topmost_module if topmost_module . name == first_part @ancestor_name = rest . join '::' end end return self end
If ancestor's name starts with topmost module, remove it
If ancestor ' s name starts with topmost module remove it