Class: Concurrent::ErlangActor::Terminated — Concurrent Ruby

# Class: Concurrent::ErlangActor::Terminated

Inherits:
  Object
  - Object
  - Concurrent::ErlangActor::Terminated
  show all

Defined in:
  lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

## Overview

A message send when actor terminates.

## Instance Attribute Summary collapse

- #from ⇒ Pid readonly
- #reason ⇒ Object readonly

## Instance Method Summary collapse

- #==(o) ⇒ true, false (also: #eql?)
- #hash ⇒ Integer
- #to_ary ⇒ ::Array(Pid, Object)

## Instance Attribute Details

### #from ⇒ `Pid` (readonly)

Returns:

- (`Pid`)

    1403
    1404
    1405
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1403

    def from
      @from
    end

### #reason ⇒ `Object` (readonly)

Returns:

- (`Object`)

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

    def reason
      @reason
    end

## Instance Method Details

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

Returns:

- (`true`, `false`)

    1420
    1421
    1422
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1420

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

### #hash ⇒ `Integer`

Returns:

- (`Integer`)

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

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

### #to_ary ⇒ `::Array(Pid, Object)`

Returns:

- (`::Array(Pid, Object)`)

    1415
    1416
    1417
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1415

    def to_ary
      [@from, @reason]
    end