Class: Wildnet::Server::Finisher
- Inherits:
-
Object
- Object
- Wildnet::Server::Finisher
- Defined in:
- lib/wildnet-server/http_response.rb
Instance Method Summary collapse
-
#initialize(proc) ⇒ Finisher
constructor
A new instance of Finisher.
- #operationComplete(future) ⇒ Object
Constructor Details
#initialize(proc) ⇒ Finisher
Returns a new instance of Finisher.
18 19 20 |
# File 'lib/wildnet-server/http_response.rb', line 18 def initialize proc @proc = proc end |
Instance Method Details
#operationComplete(future) ⇒ Object
22 23 24 |
# File 'lib/wildnet-server/http_response.rb', line 22 def operationComplete future @proc.call end |