Class: AutoNetwork::Action::LoadPool
- Inherits:
-
Object
- Object
- AutoNetwork::Action::LoadPool
- Defined in:
- lib/auto_network/action/load_pool.rb
Instance Method Summary collapse
-
#call(env) ⇒ void
Handle the loading and unloading of the auto_network pool.
-
#initialize(app, env) ⇒ LoadPool
constructor
A new instance of LoadPool.
Constructor Details
#initialize(app, env) ⇒ LoadPool
Returns a new instance of LoadPool.
6 7 8 |
# File 'lib/auto_network/action/load_pool.rb', line 6 def initialize(app, env) @app, @env = app, env end |
Instance Method Details
#call(env) ⇒ void
This method returns an undefined value.
Handle the loading and unloading of the auto_network pool
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/auto_network/action/load_pool.rb', line 19 def call(env) @env = env if env_ready? setup_ivars deserialize! @app.call(@env) serialize! else @app.call(@env) end end |