You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: entry.rb
    path of file: ./repos/devdocs/lib/docs/core/models
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Docs
  class Entr
    
    def initialize(name = nil, path = nil, type = nil)
      self.name = name
      self.path = path
      self.type = type

      unless root?
        raise Invalid, 'missing name' if !name || name.empty?
        raise Invalid, 'missing path' if !path || path.empty?
        raise Invalid, 'missing type' if !type || type.empty?
      end