Ruby/Yaml failo nuskaitymas
< Ruby
settings.yaml failas:
user: test pass: test
something.rb failas:
require 'yaml' settings = YAML::load_file('settings.yaml')
settings.yaml failas:
user: test pass: test
something.rb failas:
require 'yaml' settings = YAML::load_file('settings.yaml')