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: inventory.rb
    path of file: ./repos/narou/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

#
# Copyright 2013 whiteleaf. All ri
    
  def init(name, scope)
    dir = case scope
          when :local
            Narou.local_setting_dir
          when :global
            Narou.global_setting_dir
          else
            raise "Unknown scope"
          end