1
0
Fork 0
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:
Jeremy Evans 2019-09-06 13:37:09 -07:00
parent 5603681520
commit 434582d888
Notes: git 2019-09-07 11:41:45 +09:00

View file

@ -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