Class: WebPipe::RackSupport::AppWithMiddlewares Private
- Inherits:
-
Object
- Object
- WebPipe::RackSupport::AppWithMiddlewares
- 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
- #app ⇒ Object readonly private
- #builder ⇒ Object readonly private
- #rack_middlewares ⇒ Object readonly private
Instance Method Summary collapse
- #call(env) ⇒ Object private
-
#initialize(rack_middlewares, app) ⇒ AppWithMiddlewares
constructor
private
A new instance of AppWithMiddlewares.
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
#app ⇒ Object (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 |
#builder ⇒ Object (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_middlewares ⇒ Object (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 |