Skip to content

Commit c5842a2

Browse files
sowenjubpointlessone
authored andcommitted
Add documentation about document configuration
Echoes #802 Rubocoped Rubocoped
1 parent c61c5d4 commit c5842a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/prawn/view.rb

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ module Prawn
1111
# class Greeter
1212
# include Prawn::View
1313
#
14+
# # Optional override: allows you to set document options or even use
15+
# # a custom document class
16+
# def document
17+
# @document ||= Prawn::Document.new(page_size: 'A4')
18+
# end
19+
#
1420
# def initialize(name)
1521
# @name = name
1622
# end

0 commit comments

Comments
 (0)