Module: Rutter
- Defined in:
- lib/rutter.rb,
lib/rutter/mount.rb,
lib/rutter/route.rb,
lib/rutter/scope.rb,
lib/rutter/naming.rb,
lib/rutter/routes.rb,
lib/rutter/builder.rb,
lib/rutter/version.rb
Overview
HTTP router for Rack.
Defined Under Namespace
Modules: Naming Classes: Builder, Routes
Constant Summary collapse
- VERBS =
Supported request verbs.
%w[GET POST PUT PATCH DELETE OPTIONS].freeze
- VERSION =
Current version number.
"0.3.3"
Class Method Summary collapse
-
.new(base: "http://localhost:9292") { ... } ⇒ Object
Factory method for creating a new builder object.
Class Method Details
.new(base: "http://localhost:9292") { ... } ⇒ Object
Factory method for creating a new builder object.
22 23 24 |
# File 'lib/rutter.rb', line 22 def self.new(base: "http://localhost:9292", &block) Builder.new(base: base, &block) end |