Class: Celluloid::Call::Block
- Inherits:
-
Object
- Object
- Celluloid::Call::Block
- Defined in:
- lib/celluloid/call/block.rb
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
- #call ⇒ Object
- #dispatch ⇒ Object
-
#initialize(block_proxy, sender, arguments, task = Thread.current[:celluloid_task]) ⇒ Block
constructor
A new instance of Block.
Constructor Details
#initialize(block_proxy, sender, arguments, task = Thread.current[:celluloid_task]) ⇒ Block
Returns a new instance of Block.
4 5 6 7 8 9 |
# File 'lib/celluloid/call/block.rb', line 4 def initialize(block_proxy, sender, arguments, task = Thread.current[:celluloid_task]) @block_proxy = block_proxy @sender = sender @arguments = arguments @task = task end |
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
10 11 12 |
# File 'lib/celluloid/call/block.rb', line 10 def task @task end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/celluloid/call/block.rb', line 12 def call @block_proxy.call end |