Class UserChoices::YamlConfigFileSource
In: lib/user-choices/sources.rb
Parent: FileSource

Use an YAML file as a source of choices. Note: because the YAML parser can produce something out of many typo-filled YAML files, it‘s a good idea to check that your file looks like you‘d expect before trusting in it. Do that with:

   irb> require 'yaml'
   irb> YAML.load_file('config.yaml')


Public Instance methods

Treat filename as the configuration file. filename is expected to be in the home directory. The home directory is found in the same way Rubygems finds it.