manual/repeatable_content/repeatable_content.rb in prawn-2.2.2 vs manual/repeatable_content/repeatable_content.rb in prawn-2.3.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# Examples for stamps and repeaters.
require_relative '../example_helper'
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
@@ -9,19 +11,19 @@
p.example 'stamp'
p.example 'page_numbering', eval_source: false
p.example 'alternate_page_numbering', eval_source: false
p.intro do
- prose <<-END
+ prose <<-TEXT
Prawn offers two ways to handle repeatable content blocks. Repeater is
useful for content that gets repeated at well defined intervals while
Stamp is more appropriate if you need better control of when to repeat
it.
There is also one very specific helper for numbering pages.
The examples show:
- END
+ TEXT
list(
'How to repeat content on several pages with a single invocation',
'How to create a new Stamp',
'How to "stamp" the content block on the page',