Sha256: 96cd5c663bc47eb100f014cd3632391c8499b592b1de070a882a861eacc04fdd

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

require 'python/pickle/instruction'

module Python
  module Pickle
    module Instructions
      #
      # Represents a pickle `EMPTY_SET` instruction.
      #
      # @note introduced in protocol 4.
      #
      class EmptySet < Instruction

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

      end

      # The `EMPTY_SET` instruction.
      EMPTY_SET = EmptySet.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_set.rb
python-pickle-0.1.1 lib/python/pickle/instructions/empty_set.rb
python-pickle-0.1.0 lib/python/pickle/instructions/empty_set.rb