Class: DCell::Actor
- Inherits:
-
Object
- Object
- DCell::Actor
- Defined in:
- lib/dcell/actor_proxy.rb
Instance Attribute Summary collapse
-
#mailbox ⇒ Object
readonly
Returns the value of attribute mailbox.
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#thread ⇒ Object
readonly
Returns the value of attribute thread.
Instance Method Summary collapse
-
#initialize(mailbox) ⇒ Actor
constructor
A new instance of Actor.
Constructor Details
#initialize(mailbox) ⇒ Actor
Returns a new instance of Actor.
22 23 24 25 26 27 |
# File 'lib/dcell/actor_proxy.rb', line 22 def initialize(mailbox) @mailbox = mailbox @thread = ThreadHandleProxy.new @subject = SubjectProxy.new @proxy = Celluloid::ActorProxy.new(@thread, @mailbox) end |
Instance Attribute Details
#mailbox ⇒ Object (readonly)
Returns the value of attribute mailbox.
28 29 30 |
# File 'lib/dcell/actor_proxy.rb', line 28 def mailbox @mailbox end |
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
28 29 30 |
# File 'lib/dcell/actor_proxy.rb', line 28 def proxy @proxy end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
28 29 30 |
# File 'lib/dcell/actor_proxy.rb', line 28 def subject @subject end |
#thread ⇒ Object (readonly)
Returns the value of attribute thread.
28 29 30 |
# File 'lib/dcell/actor_proxy.rb', line 28 def thread @thread end |