123456789_123456789_123456789_123456789_123456789_

Module: Concurrent::ErlangActor::HasReason

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

HasFrom - Included

Instance Method Summary

Instance Attribute Details

#reasonObject (readonly)

[ GitHub ]

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

attr_reader :reason

Instance Method Details

#==(o) ⇒ true, false

[ GitHub ]

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

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

#hashInteger

[ GitHub ]

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

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

#initialize(from, reason) (private)

[ GitHub ]

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

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

#to_ary::Array(Pid, Object)

[ GitHub ]

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

def to_ary
  [@from, @reason]
end