Class: Python::Pickle::Instructions::Proto

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

Overview

Note:

introduces in protocol 2.

Represents the PROTO instruction.

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) ⇒ Proto

Initializes the PROTO instruction.

Parameters:

  • value (Proto)

    The PROTO instruction's value.



22
23
24
# File 'lib/python/pickle/instructions/proto.rb', line 22

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