Class: PDF::Core::OutlineRoot

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/core/outline_root.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOutlineRoot

Returns a new instance of OutlineRoot.



8
9
10
# File 'lib/pdf/core/outline_root.rb', line 8

def initialize
  @count = 0
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



6
7
8
# File 'lib/pdf/core/outline_root.rb', line 6

def count
  @count
end

#firstObject

Returns the value of attribute first.



6
7
8
# File 'lib/pdf/core/outline_root.rb', line 6

def first
  @first
end

#lastObject

Returns the value of attribute last.



6
7
8
# File 'lib/pdf/core/outline_root.rb', line 6

def last
  @last
end

Instance Method Details

#to_hashObject



12
13
14
# File 'lib/pdf/core/outline_root.rb', line 12

def to_hash
  { Type: :Outlines, Count: count, First: first, Last: last }
end