load_file( filepath )
Load a document from the file located at filepath.
YAML.load_file( 'animals.yaml' ) #=> ['badger', 'elephant', 'tiger']
# File lib/yaml.rb, line 142 def YAML.load_file( filepath ) File.open( filepath ) do |f| load( f ) end end