开发者

A great YAML library for ruby?

开发者 https://www.devze.com 2023-01-09 17:07 出处:网络
Could anyone suggest a well-documented and well known YAML library for ruby? A book I read used one like this:

Could anyone suggest a well-documented and well known YAML library for ruby?

A book I read used one like this:

开发者_StackOverflow
YAML.load_file(conf.rc).each do |k,v|
  conf.send("#{k}=", v)
end

Anyone know which library is used?

Thanks


It's party of the standard library. Just put

require 'yaml'

in your file and you can use it. Read more here.

0

精彩评论

暂无评论...
验证码 换一张
取 消