Sha256: 81382536a0ab886fa69e8a24fcbe28f7bd8cf9338cff9e4fca90034218a41091

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

# coding: utf-8

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

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 examples/report_callbacks/report_callbacks.rb
thinreports-0.9.0 examples/report_callbacks/report_callbacks.rb