1. load( io ) Load a document from the current io stream. File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) } #=> ['badger', 'elephant', 'tiger'] example: require 'yaml'yml = YAML::load(File.open('t.yml'))p yml Can also load from a string. YAML.loa…