Skip to content

Commit

Permalink
PDF::Core::Renderer#render doesn't take a block
Browse files Browse the repository at this point in the history
  • Loading branch information
pointlessone committed Feb 27, 2024
1 parent 8a3c911 commit 837445d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prawn/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,13 @@ def float
# Renders the PDF document to string.
# Pass an open file descriptor to render to file.
#
def render(*arguments, &block)
def render(*arguments)
(1..page_count).each do |i|
go_to_page i
repeaters.each { |r| r.run(i) }
end

renderer.render(*arguments, &block)
renderer.render(*arguments)
end

# Renders the PDF document to file.
Expand Down

0 comments on commit 837445d

Please sign in to comment.