fixes/module.rb
# It is recursively called on children so this method must be inside Node class and not
# just inside ModuleOrPackageNode class.
It is recursively called on children so this method must be inside Node class and not
just inside ModuleOrPackageNode class.
It is recursively called on children so this method must be inside Node class and not just inside ModuleOrPackageNode class .
def inside_class?
    parent = self
    while parent = parent.parent
      if parent.symbol? 'class'
        return true
      end
    end
    return false
  end
def inside_class? parent = self while parent = parent . parent if parent . symbol? 'class' return true end end return false end
It is recursively called on children so this method must be inside Node class and not
just inside ModuleOrPackageNode class.
It is recursively called on children so this method must be inside Node class and not just inside ModuleOrPackageNode class .