Class: Suma::CollectionConfig
- Inherits:
-
Metanorma::Collection::Config::Config
- Object
- Metanorma::Collection::Config::Config
- Suma::CollectionConfig
- Defined in:
- lib/suma/collection_config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_file(path) ⇒ Object
12 13 14 |
# File 'lib/suma/collection_config.rb', line 12 def self.from_file(path) from_yaml(File.read(path)) end |
Instance Method Details
#to_file(path) ⇒ Object
16 17 18 |
# File 'lib/suma/collection_config.rb', line 16 def to_file(path) File.write(path, to_yaml) end |