diff options
author | Jeremy Evans <[email protected]> | 2019-09-06 13:37:09 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-09-06 19:41:23 -0700 |
commit | 434582d888ad2982ec01d9b5a1e1afe8480312ab (patch) | |
tree | b2fca617ec887ffff040cd17ccd7fc6da9969460 /lib | |
parent | 56036815207b803151b0c7215da3a880bbad6df1 (diff) |
Fix Tempfile.open to correctly pass keywords to Tempfile.new
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2432
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tempfile.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 66d206a938..2bd124abea 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -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 |