Class: Rack::Blogengine::Application
- Inherits:
-
Object
- Object
- Rack::Blogengine::Application
- Defined in:
- lib/rack/blogengine/application.rb
Overview
Application is the callable middleware class run Rack::Blogengine::Application
Instance Method Summary collapse
-
#call(env) ⇒ Rack::Response
Call Method for run this method as Rack Middleware.
Instance Method Details
#call(env) ⇒ Rack::Response
Call Method for run this method as Rack Middleware.
13 14 15 16 17 18 19 20 |
# File 'lib/rack/blogengine/application.rb', line 13 def call(env) request = Rack::Request.new(env) # Router for map docs to routes route = ApplicationRouter.map_route(request, Rack::Blogengine.documents) route['response'].finish end |