123456789_123456789_123456789_123456789_123456789_

Module: Concurrent::ErlangActor::HasReference

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, HasFrom
Defined in: lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#referenceReference (readonly)

[ GitHub ]

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

attr_reader :reference

Instance Method Details

#==(o) ⇒ true, false

[ GitHub ]

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

def ==(o)
  # noinspection RubySuperCallWithoutSuperclassInspection
  super(o) && o.reference == self.reference
end

#hashInteger

[ GitHub ]

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

def hash
  [@from, @reference].hash
end

#initialize(from, reference) (private)

[ GitHub ]

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

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

#to_ary::Array(Pid, Reference)

[ GitHub ]

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

def to_ary
  [@from, @reference]
end