method

load_file

v1_8_7_330 - Show latest stable - Class: YAML
load_file( filepath )
public

Load a document from the file located at filepath.

YAML.load_file( 'animals.yaml' )
   #=> ['badger', 'elephant', 'tiger']