123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::ErlangActor::Down

Relationships & Source Files
Inherits: Object
Defined in: lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

Overview

A message send by a monitored actor when terminated.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(from, reference, info) ⇒ Down (private)

[ GitHub ]

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

def initialize(from, reference, info)
  @from      = from
  @reference = reference
  @info      = info
end

Instance Attribute Details

#fromPid (readonly)

[ GitHub ]

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

attr_reader :from

#infoObject (readonly)

[ GitHub ]

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

attr_reader :info

#referenceReference (readonly)

[ GitHub ]

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

attr_reader :reference

Instance Method Details

#==(o) ⇒ true, false Also known as: #eql?

[ GitHub ]

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

def ==(o)
  o.class == self.class && o.from == @from && o.reference == @reference && o.info == @info
end

#eql?(o)

Alias for #==.

[ GitHub ]

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

alias_method :eql?, :==

#hashInteger

[ GitHub ]

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

def hash
  to_ary.hash
end

#to_ary::Array(Pis, Reference, Object)

[ GitHub ]

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

def to_ary
  [@from, @reference, @info]
end