Ruby 将哈希数据转成 YAML 2015/03/21 33796 清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>> require 'yaml' puts ({ 'measurements' => 'metric' }.to_yaml) puts ({ :measurements => :metric }.to_yaml)