An internal PDF::Reader class that represents an indirect reference to a PDF Object
Create a new Reference to an object with the specified id and revision number
# File lib/pdf/reader/reference.rb, line 34 def initialize (id, gen) @id, @gen = id, gen end
returns true if the provided object points to the same PDF Object as the current object
# File lib/pdf/reader/reference.rb, line 50 def ==(obj) return false unless obj.kind_of?(PDF::Reader::Reference) self.hash == obj.hash end
returns the current Reference object in an array with a single element
# File lib/pdf/reader/reference.rb, line 39 def to_a [self] end
returns the ID of this reference. Use with caution, ignores the generation id
# File lib/pdf/reader/reference.rb, line 44 def to_i self.id end