module RuboCop::Cop::Layout::EmptyLinesAroundBody

def namespace?(body, with_one_child: false)

def namespace?(body, with_one_child: false)
  if body.begin_type?
    return false if with_one_child
    body.children.all? { |child| constant_definition?(child) }
  else
    constant_definition?(body)
  end
end