Class: Celluloid::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/artoo/ext/actor.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#timersObject

Returns the value of attribute timers.



8
9
10
# File 'lib/artoo/ext/actor.rb', line 8

def timers
  @timers
end

Class Method Details

.timersObject

Raises:

  • (NotActorError)


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