Class: DCell::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/dcell/actor_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mailboxObject (readonly)

Returns the value of attribute mailbox.



27
28
29
# File 'lib/dcell/actor_proxy.rb', line 27

def mailbox
  @mailbox
end

#subjectObject (readonly)

Returns the value of attribute subject.



27
28
29
# File 'lib/dcell/actor_proxy.rb', line 27

def subject
  @subject
end

#threadObject (readonly)

Returns the value of attribute thread.



27
28
29
# File 'lib/dcell/actor_proxy.rb', line 27

def thread
  @thread
end