Class: WebPipe::RackSupport::AppWithMiddlewares Private

Inherits:
Object
  • Object
show all
Defined in:
lib/web_pipe/rack_support/app_with_middlewares.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rack_middlewares, app) ⇒ AppWithMiddlewares

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AppWithMiddlewares.



12
13
14
15
16
# File 'lib/web_pipe/rack_support/app_with_middlewares.rb', line 12

def initialize(rack_middlewares, app)
  @rack_middlewares = rack_middlewares
  @app = app
  @builder = build_rack_app(rack_middlewares, app)
end

Instance Attribute Details

#appObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'lib/web_pipe/rack_support/app_with_middlewares.rb', line 10

def app
  @app
end

#builderObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'lib/web_pipe/rack_support/app_with_middlewares.rb', line 10

def builder
  @builder
end

#rack_middlewaresObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'lib/web_pipe/rack_support/app_with_middlewares.rb', line 10

def rack_middlewares
  @rack_middlewares
end

Instance Method Details

#call(env) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/web_pipe/rack_support/app_with_middlewares.rb', line 18

def call(env)
  builder.call(env)
end