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.
-
#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 |
# File 'lib/dcell/actor_proxy.rb', line 22 def initialize(mailbox) @mailbox = mailbox @thread = ThreadHandleProxy.new @subject = SubjectProxy.new end |
Instance Attribute Details
#mailbox ⇒ Object (readonly)
Returns the value of attribute mailbox.
27 28 29 |
# File 'lib/dcell/actor_proxy.rb', line 27 def mailbox @mailbox end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
27 28 29 |
# File 'lib/dcell/actor_proxy.rb', line 27 def subject @subject end |
#thread ⇒ Object (readonly)
Returns the value of attribute thread.
27 28 29 |
# File 'lib/dcell/actor_proxy.rb', line 27 def thread @thread end |