Method: Psych.load_file
- Defined in:
- lib/psych.rb
.load_file(filename) ⇒ Object
Load the document contained in filename
. Returns the yaml contained in filename
as a ruby object
296 297 298 |
# File 'lib/psych.rb', line 296 def self.load_file filename File.open(filename, 'r:bom|utf-8') { |f| self.load f, filename } end |