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
|
||||
# f.close
|
||||
# end
|
||||
def open(*args)
|
||||
tempfile = new(*args)
|
||||
def open(*args, **kw)
|
||||
tempfile = new(*args, **kw)
|
||||
|
||||
if block_given?
|
||||
begin
|
||||
|
|
Loading…
Reference in a new issue