new(file_name, yaml_opts = {}) public

Creates a new YAML::Store object, which will store data in file_name. If the file does not already exist, it will be created.

Options passed in through yaml_opts will be used when converting the store to YAML via Hash#to_yaml().

Show source
Register or log in to add new notes.