Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Report#events, and implement new callbacks #18

Closed
hidakatsuya opened this issue Apr 16, 2015 · 0 comments
Closed

Deprecate Report#events, and implement new callbacks #18

hidakatsuya opened this issue Apr 16, 2015 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hidakatsuya
Copy link
Member

Until 0.7:

report = Thinreports::Report.new layout: 'foo.tlf'
report.on :page_create do |e|
  e.page   #=> Object of creating page
  e.report #=> Report object
end

report.on :generate do |e|
  e.pages  #=> [page, page, ...]
end

Since 0.8:

report = Thinreports::Report.new layout: 'foo.tlf'
report.on_page_create do |page|
  page #=> Object of creating page
end

report.on_generate do |pages|
  pages #=> [page, page, ...]
end
@hidakatsuya hidakatsuya added the enhancement New feature or request label Apr 16, 2015
@hidakatsuya hidakatsuya self-assigned this Apr 16, 2015
@hidakatsuya hidakatsuya added this to the 0.8.0 milestone Apr 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant