Class PDF::Reader::ObjectCache
In: lib/pdf/reader/object_cache.rb
Parent: Object

A Hash-like object for caching commonly used objects from a PDF file.

This is an internal class used by PDF::Reader::ObjectHash

Methods

[]   []=   each   each_key   each_pair   each_value   empty?   fetch   has_key?   has_value?   include?   key?   keys   length   member?   new   size   to_s   values  

Constants

CACHEABLE_TYPES = [:Catalog, :Page, :Pages]   These object types use little memory and are accessed a heap of times as part of random page access, so we‘ll cache the unmarshalled objects and avoid lots of repetitive (and expensive) tokenising

Public Class methods

Public Instance methods

each_pair(&block)

Alias for each

include?(key)

Alias for has_key?

key?(key)

Alias for has_key?

length()

Alias for size

member?(key)

Alias for has_key?

[Validate]