No.  YAML.load_file accepts a string representating a path to a file, and then reads the file: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/syck/rdoc/Syck.html