Module: Padrino::PathRouter

Defined in:
padrino-core/lib/padrino-core/path_router.rb,
padrino-core/lib/padrino-core/path_router/route.rb,
padrino-core/lib/padrino-core/path_router/matcher.rb,
padrino-core/lib/padrino-core/path_router/compiler.rb,
padrino-core/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 'padrino-core/lib/padrino-core/path_router.rb', line 14

def self.new
  Router.new
end