manual/repeatable_content/page_numbering.rb in prawn-1.0.0 vs manual/repeatable_content/page_numbering.rb in prawn-1.1.0

- old
+ new

@@ -23,13 +23,13 @@ # require File.expand_path(File.join(File.dirname(__FILE__), %w[.. example_helper])) filename = File.basename(__FILE__).gsub('.rb', '.pdf') -Prawn::Example.generate(filename) do +Prawn::ManualBuilder::Example.generate(filename) do text "This is the first page!" - + 10.times do start_new_page text "Here comes yet another page." end @@ -46,9 +46,9 @@ # Gray page numbers from 8 on up options[:page_filter] = lambda{ |pg| pg > 7} options[:start_count_at] = 8 options[:color] = "333333" number_pages string, options - + start_new_page text "See. This page isn't numbered and doesn't count towards the total." end