Class: PDF::Core::OutlineRoot Private
- Inherits:
-
Object
- Object
- PDF::Core::OutlineRoot
- Defined in:
- lib/pdf/core/outline_root.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Document Outline root.
Instance Attribute Summary collapse
-
#count ⇒ Integer
private
The total number of open items at all levels of the outline.
-
#first ⇒ Reference
private
The first top-level item in the outline.
-
#last ⇒ Reference
private
The last top-level item in the outline.
Instance Method Summary collapse
-
#initialize ⇒ OutlineRoot
constructor
private
A new instance of OutlineRoot.
-
#to_hash ⇒ Hash
private
Hash representation of the outline root.
Constructor Details
#initialize ⇒ OutlineRoot
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of OutlineRoot.
22 23 24 |
# File 'lib/pdf/core/outline_root.rb', line 22 def initialize @count = 0 end |
Instance Attribute Details
#count ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The total number of open items at all levels of the outline.
12 13 14 |
# File 'lib/pdf/core/outline_root.rb', line 12 def count @count end |
#first ⇒ Reference
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The first top-level item in the outline.
16 17 18 |
# File 'lib/pdf/core/outline_root.rb', line 16 def first @first end |
#last ⇒ Reference
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The last top-level item in the outline.
20 21 22 |
# File 'lib/pdf/core/outline_root.rb', line 20 def last @last end |
Instance Method Details
#to_hash ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Hash representation of the outline root
28 29 30 |
# File 'lib/pdf/core/outline_root.rb', line 28 def to_hash { Type: :Outlines, Count: count, First: first, Last: last } end |