Class: Useless::Doc::Rack::Retriever
- Inherits:
-
Object
- Object
- Useless::Doc::Rack::Retriever
- Defined in:
- lib/useless/doc/rack/retriever.rb
Overview
Doc::Rack::Retriever
sets an appropriate retriever for the current RACK_ENV. In production it uses the Standard
retriever which makes real HTTP calls. Elsewhere, it uses Stub
which servers corresponding files from the spec/documents directory.
Defined Under Namespace
Modules: Standard Classes: Stub
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Retriever
constructor
A new instance of Retriever.
Constructor Details
#initialize(app) ⇒ Retriever
Returns a new instance of Retriever.
11 12 13 |
# File 'lib/useless/doc/rack/retriever.rb', line 11 def initialize(app) @app = app end |