Class: Tzispa::Config::Yaml
- Defined in:
- lib/tzispa/config/yaml.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.load(filename) ⇒ Object
10 11 12 13 |
# File 'lib/tzispa/config/yaml.rb', line 10 def self.load(filename) params = YAML.safe_load(File.open(filename)) parametrize params end |
.save(cfg, filename) ⇒ Object
15 16 17 18 19 |
# File 'lib/tzispa/config/yaml.rb', line 15 def self.save(cfg, filename) File.open(filename, 'w') do |f| f.write cfg.to_yaml end end |