Skip to content

Commit

Permalink
[DOC] Allow linking to File#path in Tempfile.create
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 authored and hsbt committed Aug 5, 2024
1 parent 24f7177 commit ae896a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tempfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def open(*args, **kw)
# It can be used to rename to the desired filename.
# If the file is not needed, it should be explicitly removed.
#
# The +File#path+ method of the created file object returns the temporary directory with a trailing slash
# The File#path method of the created file object returns the temporary directory with a trailing slash
# when +anonymous+ is true.
#
# When a block is given, it creates the file as described above, passes it to the block,
Expand Down

0 comments on commit ae896a5

Please sign in to comment.