Class: Wildnet::Server::Finisher

Inherits:
Object
  • Object
show all
Defined in:
lib/wildnet-server/http_response.rb

Instance Method Summary collapse

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