Class: Restless::Middleware::Factory

Inherits:
Object
  • Object
show all
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

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, options)
  @client = client
  @options = 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