Class: Celluloid::BlockResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/celluloid/responses.rb

Instance Method Summary collapse

Constructor Details

#initialize(call, result) ⇒ BlockResponse

Returns a new instance of BlockResponse.


34
35
36
37
# File 'lib/celluloid/responses.rb', line 34

def initialize(call, result)
  @call = call
  @result = result
end

Instance Method Details

#dispatchObject


39
40
41
# File 'lib/celluloid/responses.rb', line 39

def dispatch
  @call.task.resume(@result)
end