Skip to content

Commit

Permalink
Add another Tempfile method (sorbet#4957)
Browse files Browse the repository at this point in the history
Somehow I managed to delete this one method in sorbet#4907.
  • Loading branch information
jez authored Dec 3, 2021
1 parent fde2773 commit 60094ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rbi/stdlib/tempfile.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ class Tempfile
sig {params(unlink_now: T::Boolean).void}
def close(unlink_now=false); end

# Closes and unlinks (deletes) the file. Has the same effect as called
# `close(true)`.
sig {void}
def close!; end

# Alias for:
# [`unlink`](https://docs.ruby-lang.org/en/2.7.0/Tempfile.html#method-i-unlink)
sig {returns(T::Boolean)}
Expand Down

0 comments on commit 60094ee

Please sign in to comment.