Class: Loom::Config
- Inherits:
-
Hash
- Object
- Hash
- Loom::Config
- Defined in:
- lib/loom/config.rb
Class Method Summary collapse
-
.load(path) ⇒ Object
load a new config option.
Instance Method Summary collapse
Class Method Details
Instance Method Details
#save!(path) ⇒ Object
12 13 14 15 16 |
# File 'lib/loom/config.rb', line 12 def save!(path) File.open(path , 'w') do |f| f.write(JSON.pretty_generate(self)) end end |