class PDF::Reader::Reference
An internal PDF::Reader class that represents an indirect reference to a PDF Object
###############################################################################
def ==(obj)
returns true if the provided object points to the same PDF Object as the
###############################################################################
def ==(obj) return false unless obj.kind_of?(PDF::Reader::Reference) self.hash == obj.hash end
def hash
different Reference objects that point to the same PDF Object will
returns a hash based on the PDF::Reference this object points to. Two
###############################################################################
def hash "#{self.id}:#{self.gen}".hash end
def initialize(id, gen)
###############################################################################
def initialize(id, gen) @id, @gen = id, gen end
def to_a
###############################################################################
def to_a [self] end
def to_i
###############################################################################
def to_i self.id end