Sha256: 31b01c9c3ecd9be76a71d0ee937b6a166592c593ffdf500c9a3c6e7ea2519551

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require "binary_plist/parser/object_readers/base"

module BinaryPList
  module Parser
    module ObjectReaders
      class Null < Base
        def self.reads?(marker)
          (0..0).include?(marker)
        end

        def read(marker)
          raise UnsupportedMarkerError, marker unless self.class.reads?(marker)

          nil
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binary_plist-parser-0.1.1 lib/binary_plist/parser/object_readers/null.rb
binary_plist-parser-0.1.0 lib/binary_plist/parser/object_readers/null.rb