Sha256: 90404a732c040cb432f1290ee28464ff23528f98fd864788cd96d55597679950

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

require 'python/pickle/instruction'

module Python
  module Pickle
    module Instructions
      #
      # Represents a pickle `NEWOBJ` instruction.
      #
      # @note introduced in protocol 2.
      #
      class NewObj < Instruction

        #
        # Initializes the `NEWOBJ` instruction.
        #
        def initialize
          super(:NEWOBJ)
        end

      end

      # The `NEWOBJ` instruction.
      NEWOBJ = NewObj.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
python-pickle-0.2.0 lib/python/pickle/instructions/new_obj.rb
python-pickle-0.1.1 lib/python/pickle/instructions/new_obj.rb
python-pickle-0.1.0 lib/python/pickle/instructions/new_obj.rb