Module: Concurrent::ErlangActor::HasFrom
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb |
Instance Attribute Summary
- #from ⇒ Pid readonly
Instance Method Summary
- #==(o) ⇒ true, false (also: #eql?)
-
#eql?(o)
Alias for #==.
- #hash ⇒ Integer
- #initialize(from) private
Instance Attribute Details
#from ⇒ Pid (readonly)
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1273
attr_reader :from
Instance Method Details
#==(o) ⇒ true
, false
Also known as: #eql?
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1283
def ==(o) o.class == self.class && o.from == @from end
#eql?(o)
Alias for #==.
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1287
alias_method :eql?, :==
#hash ⇒ Integer
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1290
def hash @from.hash end