aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tempfile.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-21 09:28:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-21 09:28:43 +0000
commit2958ecae6793ad265bd312c225f0c7a6fa919522 (patch)
tree2b861594d6929f2834ee46f27309da4da3382c0d /lib/tempfile.rb
parent20fa0c26c9c4216926c5240678fbe27878ce9cca (diff)
downloadruby-2958ecae6793ad265bd312c225f0c7a6fa919522.tar.gz
tempfile.rb: get rid of warnings
* lib/tempfile.rb (Tempfile#initialize): use class method to get rid of warnings when $VERBOSE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 92a73f82ea..5f4e8eedf1 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -133,7 +133,7 @@ class Tempfile < DelegateClass(File)
@clean_proc = Remover.new(@data)
ObjectSpace.define_finalizer(self, @clean_proc)
- create(basename, *rest) do |tmpname, n, opts|
+ ::Dir::Tmpname.create(basename, *rest) do |tmpname, n, opts|
mode = File::RDWR|File::CREAT|File::EXCL
perm = 0600
if opts