Skip to content

Instantly share code, notes, and snippets.

@godfat
Created March 2, 2018 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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