Sha256: caf7bb624c30567504d4100dd19dc869a8eccc95f979fcd2c73e8ea101e3c2d8

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

require 'python/pickle/instruction'
require 'python/pickle/instructions/has_namespace_and_name'

module Python
  module Pickle
    module Instructions
      #
      # Represents the `INST` instruction.
      #
      # @note introduced in protocol 0.
      #
      # @since 0.2.0
      #
      class Inst < Instruction

        include HasNamespaceAndName

        #
        # Initializes a `INST` instruction.
        #
        # @param [String] namespace
        #   The namespace name for the constant.
        #
        # @param [String] name
        #   The name of the constant.
        #
        def initialize(namespace,name)
          super(:INST,namespace,name)
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
python-pickle-0.2.0 lib/python/pickle/instructions/inst.rb