Ruby/Yaml failo nuskaitymas
Išvaizda
< 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')