summaryrefslogtreecommitdiff
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-07-23 14:26:34 -0400
committerPeter Zhu <[email protected]>2024-07-23 14:26:34 -0400
commit47c0df9c4ab2ff6a437ef462eae5ca1eb77fffab (patch)
treea1dca061cb5bc96abe72323cf5eaebe31512da0c /lib/tempfile.rb
parentc00990869f7104f5016ec4b35bfebfd27626b2e5 (diff)
[DOC] Allow linking to File#path in Tempfile.create
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r--lib/tempfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 9107b7d016..51c105d591 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -535,7 +535,7 @@ end
# 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,