Class: Python::Pickle::Instructions::Global

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

Overview

Note:

introduced in protocol 0.

Represents the GLOBAL instruction.

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

Initializes a GLOBAL instruction.

Parameters:

  • namespace (String)

    The namespace name for the constant.

  • name (String)

    The name of the constant.



25
26
27
# File 'lib/python/pickle/instructions/global.rb', line 25

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