summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-06 20:37:09 (GMT)
committerJeremy Evans <code@jeremyevans.net>2019-09-07 02:41:23 (GMT)
commit434582d888ad2982ec01d9b5a1e1afe8480312ab (patch)
treeb2fca617ec887ffff040cd17ccd7fc6da9969460
parent56036815207b803151b0c7215da3a880bbad6df1 (diff)
Fix Tempfile.open to correctly pass keywords to Tempfile.new
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2432
-rw-r--r--lib/tempfile.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 66d206a..2bd124a 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