Class: Affect::Fiber::Escape
Instance Attribute Summary
Attributes inherited from Intent
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(&block) ⇒ Escape
constructor
A new instance of Escape.
Constructor Details
#initialize(&block) ⇒ Escape
Returns a new instance of Escape.
19 20 21 |
# File 'lib/affect/fiber.rb', line 19 def initialize(&block) @block = block end |
Instance Method Details
#call(*args) ⇒ Object
23 24 25 |
# File 'lib/affect/fiber.rb', line 23 def call(*args) @block.(*args) end |