1
0
Fork 0
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:
Rob Gleeson 2012-01-10 04:10:20 +00:00
parent 4fc1c97489
commit 4a9c6f015b

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)