Class: Python::Pickle::Instructions::PersID

Inherits:
Python::Pickle::Instruction show all
Includes:
HasValue
Defined in:
lib/python/pickle/instructions/persid.rb

Overview

Note:

introduced in protocol 0.

Represents the PERSID instruction.

Since:

  • 0.2.0

Instance Attribute Summary

Attributes included from HasValue

#value

Attributes inherited from Python::Pickle::Instruction

#opcode

Instance Method Summary collapse

Methods included from HasValue

#==, #to_s

Methods inherited from Python::Pickle::Instruction

#==, #inspect, #to_s

Constructor Details

#initialize(value) ⇒ PersID

Initializes the PERSID instruction.

Parameters:

  • value (String)

    The PERSID instruction's value.

Since:

  • 0.2.0



24
25
26
# File 'lib/python/pickle/instructions/persid.rb', line 24

def initialize(value)
  super(:PERSID,value)
end