Skip to content

Commit

Permalink
Fix API documentation of Document#write
Browse files Browse the repository at this point in the history
  • Loading branch information
gettalong committed Sep 24, 2024
1 parent 70cf15c commit 44d25b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/hexapdf/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,12 @@ def duplicate
end

# :call-seq:
# doc.write(filename, incremental: false, validate: true, update_fields: true, optimize: false)
# doc.write(io, incremental: false, validate: true, update_fields: true, optimize: false)
# doc.write(filename, incremental: false, validate: true, update_fields: true, optimize: false) -> [start_xref, section]
# doc.write(io, incremental: false, validate: true, update_fields: true, optimize: false) -> [start_xref, section]
#
# Writes the document to the given file (in case +io+ is a String) or IO stream.
# Writes the document to the given file (in case +io+ is a String) or IO stream. Returns the
# file position of the start of the last cross-reference section and the last XRefSection object
# written.
#
# Before the document is written, it is validated using #validate and an error is raised if the
# document is not valid. However, this step can be skipped if needed.
Expand Down

0 comments on commit 44d25b4

Please sign in to comment.