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.



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

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

Instance Method Details

#dispatchObject



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

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