Class: Useless::Rack::Mongo
- Inherits:
-
Object
- Object
- Useless::Rack::Mongo
- Defined in:
- lib/useless/rack/mongo.rb
Overview
‘Rack::Mongo` adds the Useless.mongo instance to the env as ’useless.mongo’.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Mongo
constructor
A new instance of Mongo.
Constructor Details
#initialize(app) ⇒ Mongo
Returns a new instance of Mongo.
6 7 8 |
# File 'lib/useless/rack/mongo.rb', line 6 def initialize(app) @app = app end |