module Concurrent::ErlangActor::HasReason

Attributes

reason[R]

@return [Object]

Public Class Methods

new(from, reason) click to toggle source

@!visibility private

Calls superclass method Concurrent::ErlangActor::HasFrom::new
# File lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb, line 1304
def initialize(from, reason)
  # noinspection RubySuperCallWithoutSuperclassInspection
  super from
  @reason = reason
end

Public Instance Methods

==(o) click to toggle source

@return [true, false]

Calls superclass method Concurrent::ErlangActor::HasFrom#==
# File lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb, line 1316
def ==(o)
  # noinspection RubySuperCallWithoutSuperclassInspection
  super(o) && o.reason == self.reason
end
hash() click to toggle source

@return [Integer]

# File lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb, line 1322
def hash
  [@from, @reason].hash
end
to_ary() click to toggle source

@return [::Array(Pid, Object)]

# File lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb, line 1311
def to_ary
  [@from, @reason]
end