Class: Python::Pickle::Instructions::Inst

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

Overview

Note:

introduced in protocol 0.

Represents the INST instruction.

Since:

  • 0.2.0

Instance Attribute Summary

Attributes included from HasNamespaceAndName

#name, #namespace

Attributes inherited from Python::Pickle::Instruction

#opcode

Instance Method Summary collapse

Methods included from HasNamespaceAndName

#==, #to_s

Methods inherited from Python::Pickle::Instruction

#==, #inspect, #to_s

Constructor Details

#initialize(namespace, name) ⇒ Inst

Initializes a INST instruction.

Parameters:

  • namespace (String)

    The namespace name for the constant.

  • name (String)

    The name of the constant.

Since:

  • 0.2.0



27
28
29
# File 'lib/python/pickle/instructions/inst.rb', line 27

def initialize(namespace,name)
  super(:INST,namespace,name)
end