summaryrefslogtreecommitdiff
path: root/lib/tmpdir.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-11 10:17:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-11 10:17:36 +0000
commitd9eae8001157b255307b6754737968db12b9c9ba (patch)
tree6b4a67f1378696aac5604da427847b64e554c193 /lib/tmpdir.rb
parent3f5fbc6c34fa9a4e63e3892b7962692dff8d9159 (diff)
* lib/tempfile.rb (Tempfile#initialize): merge mode option.
* lib/tmpdir.rb (Dir::Tmpname#create): splat options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r--lib/tmpdir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index fafe120b3e..32befa3e8a 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -152,7 +152,7 @@ class Dir
n = nil
begin
path = File.expand_path(make_tmpname(basename, n), tmpdir)
- yield(path, n, opts)
+ yield(path, n, *opts)
rescue Errno::EEXIST
n ||= 0
n += 1