Class representing a Cross-reference table. A section contains a set of XRefSubsection.
Creates a new XRef section.
subsections |
An array of XRefSubsection. |
# File lib/origami/xreftable.rb, line 220 def initialize(subsections = []) @subsections = subsections end
Appends a new subsection.
subsection |
A XRefSubsection. |
# File lib/origami/xreftable.rb, line 242 def <<(subsection) @subsections << subsection end
Returns a XRef associated with a given object.
no |
The Object number. |
# File lib/origami/xreftable.rb, line 250 def [](no) @subsections.each { |s| return s[no] if s.has_object?(no) } nil end
Processes each XRefSubsection.
# File lib/origami/xreftable.rb, line 262 def each(&b) @subsections.each(&b) end
Outputs self into PDF code.
# File lib/origami/xreftable.rb, line 269 def to_s "xref" << EOL << @subsections.join end
Generated with the Darkfish Rdoc Generator 2.