Skip to content

Instantly share code, notes, and snippets.

@godfat
Created March 2, 2018 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godfat/a659e881fd428e73478b89f63dfaccc6 to your computer and use it in GitHub Desktop.
Save godfat/a659e881fd428e73478b89f63dfaccc6 to your computer and use it in GitHub Desktop.
settingslogic madness
require 'settingslogic'
class Settings < Settingslogic
source 'aa.yaml'
end
Settings.a['d'] = 2
p Settings.a # {"b"=>0, "c"=>1, "d"=>2}
p Settings['a'] # {"b"=>0, "c"=>1}
a:
b: 0
c: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment