Skip to content

Commit

Permalink
Fix Tempfile.open to correctly pass keywords to Tempfile.new
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Sep 7, 2019
1 parent 5603681 commit 434582d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tempfile.rb
Expand Up @@ -287,8 +287,8 @@ class << self
# ensure
# f.close
# end
def open(*args)
tempfile = new(*args)
def open(*args, **kw)
tempfile = new(*args, **kw)

if block_given?
begin
Expand Down

0 comments on commit 434582d

Please sign in to comment.