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 contains_other_module?
    children.any? do |child|
      child.is_a? ModuleOrPackageNode or child.contains_other_module?
    end
  end
def contains_other_module? children . any? do | child | child . is_a? ModuleOrPackageNode or child . contains_other_module? end 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 .