Great YAML library for rubies?

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

The book I read used the following:

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

Does anyone know which library is used?

thank

+3
source share
1 answer

This is a batch of the standard library. Just put

require 'yaml'

in your file and you can use it. More details here .

+9
source

Source: https://habr.com/ru/post/1757220/


All Articles