Programming Ruby 3.2 (5th Edition): B4.0 page 586, code again

@noelrappin

page 586, in the file ref_io/yaml_config.rb

Error with config = YAML.load_file("code/sl_yaml/config.yml").

% ruby -w ref_io/yaml_config.rb 
ref_io/yaml_config.rb:13: warning: possibly useless use of * in void context
...psych.rb:670:in `initialize': No such file or directory @ rb_sysopen - code/sl_yaml/config.yml (Errno::ENOENT)

It works with config = YAML.load_file("sl_yaml/config.yml").

I’ll use the __dir__ trick again (it has to be able to run from the parent directory for the build system…)