Module: Reck
- Extended by:
- Reck
- Included in:
- Reck
- Defined in:
- lib/reck.rb,
lib/reck/version.rb,
lib/reck/application.rb
Defined Under Namespace
Classes: Application, Created, Forbidden, NotFound, Ok, Response, Route
Constant Summary collapse
- VERSION =
'0.0.2'.freeze
- STATUS =
{ Ok => 200, Created => 201, Forbidden => 403, NotFound => 404 }.freeze
Instance Method Summary collapse
Instance Method Details
#route(path, &block) ⇒ Object
65 66 67 |
# File 'lib/reck/application.rb', line 65 def route(path, &block) Application.routes.unshift(Route.new(path, block)) end |