Class: Celluloid::Proxy::AbstractCall
- Defined in:
- lib/celluloid/proxy/abstract.rb
Instance Attribute Summary collapse
-
#mailbox ⇒ Object
readonly
Returns the value of attribute mailbox.
Instance Method Summary collapse
- #__klass__ ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(mailbox, klass) ⇒ AbstractCall
constructor
A new instance of AbstractCall.
- #inspect ⇒ Object
Methods inherited from Abstract
Constructor Details
#initialize(mailbox, klass) ⇒ AbstractCall
Returns a new instance of AbstractCall.
30 31 32 33 |
# File 'lib/celluloid/proxy/abstract.rb', line 30 def initialize(mailbox, klass) @mailbox = mailbox @klass = klass end |
Instance Attribute Details
#mailbox ⇒ Object (readonly)
Returns the value of attribute mailbox.
28 29 30 |
# File 'lib/celluloid/proxy/abstract.rb', line 28 def mailbox @mailbox end |
Instance Method Details
#__klass__ ⇒ Object
43 44 45 |
# File 'lib/celluloid/proxy/abstract.rb', line 43 def __klass__ @klass end |
#eql?(other) ⇒ Boolean
35 36 37 |
# File 'lib/celluloid/proxy/abstract.rb', line 35 def eql?(other) __class__.eql?(::Celluloid::Proxy.class_of(other)) && @mailbox.eql?(other.mailbox) end |
#hash ⇒ Object
39 40 41 |
# File 'lib/celluloid/proxy/abstract.rb', line 39 def hash @mailbox.hash end |
#inspect ⇒ Object
47 48 49 |
# File 'lib/celluloid/proxy/abstract.rb', line 47 def inspect "#<#{__class__}(#{@klass})>" end |