Class: Celluloid::Actor
- Inherits:
-
Object
- Object
- Celluloid::Actor
- Defined in:
- lib/artoo/ext/actor.rb
Instance Attribute Summary collapse
-
#timers ⇒ Object
Returns the value of attribute timers.
Class Method Summary collapse
Instance Attribute Details
#timers ⇒ Object
Returns the value of attribute timers.
8 9 10 |
# File 'lib/artoo/ext/actor.rb', line 8 def timers @timers end |
Class Method Details
.timers ⇒ Object
11 12 13 14 15 |
# File 'lib/artoo/ext/actor.rb', line 11 def timers actor = Thread.current[:celluloid_actor] raise NotActorError, "not in actor scope" unless actor actor.timers end |