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
9 10 11 12 |
# File 'lib/tzispa/config/yaml.rb', line 9 def self.load(filename) params = YAML.load(File.open(filename)) self.parametrize params end |
.save(cfg, filename) ⇒ Object
14 15 16 17 18 |
# File 'lib/tzispa/config/yaml.rb', line 14 def self.save(cfg, filename) File.open(filename, 'w') { |f| f.write cfg.to_yaml } end |