Kernel#y
yamlãrequireããã¨ãå¼æ°ã§æå®ããããªãã¸ã§ã¯ããyamlå½¢å¼ã§åºåãããKernel#yãã¡ã½ããã追å ããã¾ããKernelã«è¿½å ãããã®ã§ãçµã¿è¾¼ã¿é¢æ°ã¨ãã¦ä½¿ãã¾ãã
require 'yaml' list = [ { :name => "mii", :age=>1 }, { :name => "tora", :age=>0 }, { :name => "shiro", :age=>2 } ] # å¼æ°ãyamlå½¢å¼ã§åºå y list
å®è¡çµæã§ãã
--- - :age: 1 :name: mii - :age: 0 :name: tora - :age: 2 :name: shiro