Module: Padrino::PathRouter

Defined in:
lib/padrino-core/path_router.rb,
lib/padrino-core/path_router/route.rb,
lib/padrino-core/path_router/matcher.rb,
lib/padrino-core/path_router/compiler.rb,
lib/padrino-core/path_router/error_handler.rb

Overview

Provides an HTTP router for use in path routing.

Defined Under Namespace

Classes: Compiler, Matcher, Route, Router

Constant Summary collapse

InvalidRouteException =

See Also:

Class.new(ArgumentError)

Class Method Summary collapse

Class Method Details

.newObject

Constructs an instance of PathRouter::Router.



14
15
16
# File 'lib/padrino-core/path_router.rb', line 14

def self.new
  Router.new
end