If I do:

file = File.open('somefile')

and never close the file, will Ruby automatically close it when the
variable "file" goes out of scope? Or will it stay open until the
program/thread ends?