YAML storage method.
Loads `@data` with the YAML file located at `path`. `@data` will be the Hashish that is accessed with `AppConfig`.
Defaults to `$HOME/.app_config.yml`
# File lib/app_config/storage/yaml.rb, line 15 def initialize(path = DEFAULT_PATH) # Make sure to use the top-level YAML module here. @data = Hashish.new(::YAML.load_file(path)) end
# File lib/app_config/storage/yaml.rb, line 20 def [](key) @data[key] end
# File lib/app_config/storage/yaml.rb, line 24 def []=(key, value) @data[key] = value end
# File lib/app_config/storage/yaml.rb, line 28 def empty? @data.empty? end