diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index ada9ed5544..5cf2c47448 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -58,7 +58,8 @@ class Dir # # If a block is given, # it is yielded with the path of the directory. - # The directory is removed before Dir.mktmpdir returns. + # The directory and its contents are removed + # using FileUtils.remove_entry_secure before Dir.mktmpdir returns. # The value of the block is returned. # # Dir.mktmpdir {|dir|