123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::ErlangActor::Terminated

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

Overview

A message send when actor terminates.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(from, reason) ⇒ Terminated (private)

[ GitHub ]

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

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

Instance Attribute Details

#fromPid (readonly)

[ GitHub ]

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

attr_reader :from

#reasonObject (readonly)

[ GitHub ]

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

attr_reader :reason

Instance Method Details

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

[ GitHub ]

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

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

#eql?(o)

Alias for #==.

[ GitHub ]

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

alias_method :eql?, :==

#hashInteger

[ GitHub ]

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

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

#to_ary::Array(Pid, Object)

[ GitHub ]

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

def to_ary
  [@from, @reason]
end