Remove 'opts' argument from temp_file(…) helper.
This commit is contained in:
parent
4fc1c97489
commit
4a9c6f015b
|
@ -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 New Issue