class RBS::Namespace

def ascend

def ascend
  if block_given?
    current = self
    until current.empty?
      yield current
      current = _ = current.parent
    end
    yield current
    self
  else
    enum_for(:ascend)
  end
end