Class: Prawn::OutlineRoot

Inherits:
Object
  • Object
show all
Defined in:
lib/prawn/outline.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOutlineRoot

Returns a new instance of OutlineRoot.



245
246
247
# File 'lib/prawn/outline.rb', line 245

def initialize
  @count = 0
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



243
244
245
# File 'lib/prawn/outline.rb', line 243

def count
  @count
end

#firstObject

Returns the value of attribute first.



243
244
245
# File 'lib/prawn/outline.rb', line 243

def first
  @first
end

#lastObject

Returns the value of attribute last.



243
244
245
# File 'lib/prawn/outline.rb', line 243

def last
  @last
end

Instance Method Details

#to_hashObject



249
250
251
# File 'lib/prawn/outline.rb', line 249

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