Sha256: b2caf54f82ac15c17df5fecb25b4e87a26ad949a9fa1952a681f1931b0ff4865

Contents?: true

Size: 490 Bytes

Versions: 3

Compression:

Stored size: 490 Bytes

Contents

require 'python/pickle/instruction'

module Python
  module Pickle
    module Instructions
      #
      # Represents a pickle `EMPTY_TUPLE` instruction.
      #
      # @note Introduced in protocol 1.
      #
      class EmptyTuple < Instruction

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

      end

      # The `EMPTY_TUPLE` instruction.
      EMPTY_TUPLE = EmptyTuple.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/empty_tuple.rb
python-pickle-0.1.1 lib/python/pickle/instructions/empty_tuple.rb
python-pickle-0.1.0 lib/python/pickle/instructions/empty_tuple.rb