From c5842a27b15f912f2f0ad5818a9ef38992978b3c Mon Sep 17 00:00:00 2001 From: Arnaud Joubay Date: Tue, 23 Apr 2019 09:14:13 +0200 Subject: [PATCH] Add documentation about document configuration Echoes https://github.com/prawnpdf/prawn/issues/802 Rubocoped Rubocoped --- lib/prawn/view.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/prawn/view.rb b/lib/prawn/view.rb index 434ac5d60..00dc23e7d 100644 --- a/lib/prawn/view.rb +++ b/lib/prawn/view.rb @@ -11,6 +11,12 @@ module Prawn # class Greeter # include Prawn::View # + # # Optional override: allows you to set document options or even use + # # a custom document class + # def document + # @document ||= Prawn::Document.new(page_size: 'A4') + # end + # # def initialize(name) # @name = name # end