123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

Instance Attribute Details

#fromPid (readonly)

[ GitHub ]

  
# 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?

[ GitHub ]

  
# 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 #==.

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1287

alias_method :eql?, :==

#hashInteger

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1290

def hash
  @from.hash
end

#initialize(from) (private)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1276

def initialize(from)
  # noinspection RubySuperCallWithoutSuperclassInspection
  super()
  @from = from
end