Class: Affect::Fiber::Escape

Inherits:
Intent
  • Object
show all
Defined in:
lib/affect/fiber.rb

Instance Attribute Summary

Attributes inherited from Intent

#args

Instance Method Summary collapse

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