Class: Celluloid::Internals::Response::Block

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

Instance Method Summary collapse

Constructor Details

#initialize(call, result) ⇒ Block

Returns a new instance of Block.



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

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

Instance Method Details

#dispatchObject



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

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