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: dir_validator.rb
    path of file: ./repos/squib/lib/squib/args
    
    the code of the file until where you have to start completion: module Squib::Args::DirValidat
    
  def ensure_dir_created(dir)
    unless Dir.exist?(dir)
      Squib.logger.warn "Dir '#{dir}' does not exist, creating it."
      FileUtils.mkdir_p dir
    end
    return dir
  end