Sha256: 56b2c8916bef4ad8235ab51884c1ef92278e5d48e8a6471611951f7eb27f59ee

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

# encoding: utf-8
#
# generates outline dictionary and items for document
#
# Author Jonathan Greenberg

require 'forwardable'
require_relative "../pdf/core/outline"

module Prawn

  class Document

    # Lazily instantiates an Outline object for document. This is used as point of entry
    # to methods to build the outline tree.
    def outline
      @outline ||= PDF::Core::Outline.new(self)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn-0.14.0 lib/prawn/outline.rb
prawn-0.13.2 lib/prawn/outline.rb
prawn-0.13.1 lib/prawn/outline.rb
prawn-0.13.0 lib/prawn/outline.rb