yaml invoke

require "yaml"
$config = YAML.load_file(File.join('config', 'database.yml'))
原文地址:https://www.cnblogs.com/lexus/p/1912636.html