Sha256: e05fddf1a1b489a38f8317322579f3de0623942d74ef0c872adebc3cf5fa27de

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

require 'python/pickle/instruction'

module Python
  module Pickle
    module Instructions
      #
      # Represents the `EMPTY_DICT` instruction.
      #
      # @note introduced in protocol 1.
      #
      class EmptyDict < Instruction

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

      end

      # The `EMPTY_DICT` instruction.
      EMPTY_DICT = EmptyDict.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_dict.rb
python-pickle-0.1.1 lib/python/pickle/instructions/empty_dict.rb
python-pickle-0.1.0 lib/python/pickle/instructions/empty_dict.rb