Class: Celluloid::Internals::Response::Block
- Inherits:
-
Object
- Object
- Celluloid::Internals::Response::Block
- Defined in:
- lib/celluloid/internals/responses.rb
Instance Method Summary collapse
- #dispatch ⇒ Object
-
#initialize(call, result) ⇒ Block
constructor
A new instance of Block.
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
#dispatch ⇒ Object
40 41 42 |
# File 'lib/celluloid/internals/responses.rb', line 40 def dispatch @call.task.resume(@result) end |