diff --git a/manual/basic_concepts/view.rb b/manual/basic_concepts/view.rb index 7dad733b7..07cf8e76f 100644 --- a/manual/basic_concepts/view.rb +++ b/manual/basic_concepts/view.rb @@ -29,6 +29,10 @@ def initialize(name) @name = name end + def document + @pdf ||= Prawn::Document.new(page_size: 'A4', page_layout: :landscape, margin: 30) + end + def say_hello text "Hello, #{@name}!" end