Created
March 2, 2018 13:56
-
-
Save godfat/a659e881fd428e73478b89f63dfaccc6 to your computer and use it in GitHub Desktop.
settingslogic madness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a: | |
b: 0 | |
c: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment