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
@ -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…
x
Reference in New Issue
Block a user