Module: ModularRoutes::Routable

Defined in:
lib/modular_routes/routable.rb,
lib/modular_routes/routable/restful.rb,
lib/modular_routes/routable/concerns.rb,
lib/modular_routes/routable/standalone.rb,
lib/modular_routes/routable/non_restful.rb

Class Method Summary collapse

Class Method Details

.for(type, *args) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/modular_routes/routable.rb', line 5

def self.for(type, *args)
  case type
  when :standalone then Standalone.new(*args)
  when :non_restful then NonRestful.new(*args)
  when :restful then Restful.new(*args)
  when :concerns then Concerns.new(*args)
  else raise NotImplementedError
  end
end