mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix Tempfile.open to correctly pass keywords to Tempfile.new
This commit is contained in:
parent
5603681520
commit
434582d888
Notes:
git
2019-09-07 11:41:45 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ class Tempfile < DelegateClass(File)
|
||||||
# ensure
|
# ensure
|
||||||
# f.close
|
# f.close
|
||||||
# end
|
# end
|
||||||
def open(*args)
|
def open(*args, **kw)
|
||||||
tempfile = new(*args)
|
tempfile = new(*args, **kw)
|
||||||
|
|
||||||
if block_given?
|
if block_given?
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in a new issue