Sha256: 2eec75c9555651394971ab86885c6569049809f263a330e199673f8dd7f1cc23

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

example :report_callbacks, 'Callbacks of Report' do |t|
  report = Thinreports::Report.new layout: t.layout_filename

  report.on_page_create do |page|
    page.item(:text2).value('Rendered by on_page_create')
  end

  report.start_new_page
  report.start_new_page

  report.generate filename: t.output_filename
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.10.2 examples/report_callbacks/report_callbacks.rb
thinreports-0.10.1 examples/report_callbacks/report_callbacks.rb
thinreports-0.10.0 examples/report_callbacks/report_callbacks.rb