class Erlang::OtpErlangPid
Attributes
creation[R]
id[R]
node[R]
serial[R]
Public Class Methods
new(node, id, serial, creation)
click to toggle source
# File lib/erlang.rb, line 183 def initialize(node, id, serial, creation) @node = node @id = id @serial = serial @creation = creation end
Public Instance Methods
==(other)
click to toggle source
# File lib/erlang.rb, line 213 def ==(other) return binary == other.binary end
Also aliased as: eql?
binary()
click to toggle source
# File lib/erlang.rb, line 193 def binary creation_size = @creation.bytesize if creation_size == 1 return "#{TAG_PID_EXT.chr}" \ "#{@node.binary}#{@id}#{@serial}#{@creation}" elsif creation_size == 4 return "#{TAG_NEW_PID_EXT.chr}" \ "#{@node.binary}#{@id}#{@serial}#{@creation}" else raise OutputException, 'unknown pid type', caller end end
hash()
click to toggle source
# File lib/erlang.rb, line 210 def hash return binary.hash end
to_s()
click to toggle source
# File lib/erlang.rb, line 205 def to_s return "#{self.class.name}" \ "('#{@node.to_s}','#{@id.to_s}','#{@serial.to_s}'," \ "'#{@creation.to_s}')" end