Class: Restless::Middleware::Factory
- Inherits:
-
Object
- Object
- Restless::Middleware::Factory
- Defined in:
- lib/restless/rack.rb
Overview
use client.rack hands Rack::Builder something that responds to
new(app); this is that something.
Instance Method Summary collapse
-
#initialize(client, options) ⇒ Factory
constructor
A new instance of Factory.
- #new(app) ⇒ Object
Constructor Details
#initialize(client, options) ⇒ Factory
Returns a new instance of Factory.
57 58 59 60 |
# File 'lib/restless/rack.rb', line 57 def initialize(client, ) @client = client @options = end |
Instance Method Details
#new(app) ⇒ Object
62 63 64 |
# File 'lib/restless/rack.rb', line 62 def new(app) Middleware.new(app, @client, @options) end |