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.



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

def initialize
  @count = 0
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



4
5
6
# File 'lib/pdf/core/outline_root.rb', line 4

def count
  @count
end

#firstObject

Returns the value of attribute first.



4
5
6
# File 'lib/pdf/core/outline_root.rb', line 4

def first
  @first
end

#lastObject

Returns the value of attribute last.



4
5
6
# File 'lib/pdf/core/outline_root.rb', line 4

def last
  @last
end

Instance Method Details

#to_hashObject



10
11
12
# File 'lib/pdf/core/outline_root.rb', line 10

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