Sha256: 74da3edaecef4c5de398a7ba04c1b86591d05b17227c289feb4b7851a2376345

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

require 'python/pickle/instruction'
require 'python/pickle/instructions/has_value'

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

        include HasValue

        #
        # Initializes the `EXT2` instruction.
        #
        # @param [Integer] value
        #   The extension code.
        #
        def initialize(value)
          super(:EXT2,value)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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