Class: RactorRailsShim::WorkerApp
- Inherits:
-
Object
- Object
- RactorRailsShim::WorkerApp
- Defined in:
- lib/ractor_rails_shim/roles/worker_app.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, bindings) ⇒ WorkerApp
constructor
A new instance of WorkerApp.
Constructor Details
#initialize(app, bindings) ⇒ WorkerApp
Returns a new instance of WorkerApp.
19 20 21 22 |
# File 'lib/ractor_rails_shim/roles/worker_app.rb', line 19 def initialize(app, bindings) @app = app @bindings = bindings end |
Instance Method Details
#call(env) ⇒ Object
24 25 26 27 |
# File 'lib/ractor_rails_shim/roles/worker_app.rb', line 24 def call(env) setup_once! @app.call(env) end |