mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Remove 'opts' argument from temp_file(…) helper.
This commit is contained in:
parent
4fc1c97489
commit
4a9c6f015b
1 changed files with 2 additions and 2 deletions
|
@ -21,11 +21,11 @@ class Pry
|
|||
|
||||
# Open a temp file and yield it to the block, closing it after
|
||||
# @return [String] The path of the temp file
|
||||
def temp_file opts = { :unlink => true }
|
||||
def temp_file
|
||||
file = Tempfile.new(['pry', '.rb'])
|
||||
yield file
|
||||
ensure
|
||||
file.close(opts[:unlink])
|
||||
file.close(true)
|
||||
end
|
||||
|
||||
def get_method_or_raise(name, target, opts={}, omit_help=false)
|
||||
|
|
Loading…
Reference in a new issue