Sha256: c4d278071ae51c3beaf4a95bba6af44814ddfa4f061944b17db4fcb94e2ff56f
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
module Rack module Blogengine # # Application is the callable middleware class # run Rack::Blogengine::Application # # @author [benny] # class Application # def initialize(app) # @app = app # end # Call Method for run this method as Rack Middleware. # @param env Environment contains information such as path, headers etc... # @return [Array] response Array 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-blogengine-0.2.5 | lib/rack/blogengine/application.rb |