From 47c0df9c4ab2ff6a437ef462eae5ca1eb77fffab Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 23 Jul 2024 14:26:34 -0400 Subject: [PATCH] [DOC] Allow linking to File#path in Tempfile.create --- lib/tempfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,