Sha256: 007d211a925c8008de3479e704be842a2bf28ed91d8d517dc5cb7dd3eb52424f

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

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

module Python
  module Pickle
    module Instructions
      #
      # Represents the `PROTO` instruction.
      #
      # @note introduces in protocol 2.
      #
      class Proto < Instruction

        include HasValue

        #
        # Initializes the `PROTO` instruction.
        #
        # @param [Proto] value
        #   The `PROTO` instruction's value.
        #
        def initialize(value)
          super(:PROTO,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/proto.rb
python-pickle-0.1.1 lib/python/pickle/instructions/proto.rb
python-pickle-0.1.0 lib/python/pickle/instructions/proto.rb