Class: PDF::Hash

Inherits:
Reader::ObjectHash show all
Defined in:
lib/pdf/hash.rb

Overview

This class is deprecated, please stop using it.

Direct Known Subclasses

Reader::LZW::StringTable

Instance Attribute Summary

Attributes inherited from Reader::ObjectHash

#default, #pdf_version, #sec_handler, #trailer

Instance Method Summary (collapse)

Methods inherited from Reader::ObjectHash

#[], #deref!, #each, #each_key, #each_value, #empty?, #encrypted?, #fetch, #has_key?, #has_value?, #keys, #obj_type, #object, #page_references, #sec_handler?, #size, #stream?, #to_a, #to_s, #values, #values_at

Constructor Details

- (Hash) initialize(input)

:nodoc:



6
7
8
9
# File 'lib/pdf/hash.rb', line 6

def initialize(input)
  warn "DEPRECATION NOTICE: PDF::Hash has been deprecated, use PDF::Reader::ObjectHash instead"
  super
end

Instance Method Details

- (Object) version



11
12
13
14
15
16
17
# File 'lib/pdf/hash.rb', line 11

def version
  warn <<-EOS
    DEPRECATION NOTICE: PDF::Hash#version has been deprecated,
    use PDF::Reader::ObjectHash#pdf_version instead
  EOS
  pdf_version
end