Remove 'opts' argument from temp_file(…) helper.

This commit is contained in:
Rob Gleeson 2012-01-10 04:10:20 +00:00
parent 4fc1c97489
commit 4a9c6f015b
1 changed files with 2 additions and 2 deletions

View File

@ -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)