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

module ModularRoutes
  module Scopable
    def self.for(type, *
    
    def self.for(type, *args)
      case type
      when :namespace then Namespace.new(*args)
      when :resources then Resource.new(*args)
      when :resource then SingleResource.new(*args)
      when :scope then Scope.new(*args)
      when :concern then Concern.new(*args)
      else raise NotImplementedError
      end