Class: Suma::CollectionConfig

Inherits:
Metanorma::Collection::Config::Config
  • Object
show all
Defined in:
lib/suma/collection_config.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_file(path) ⇒ Object



14
15
16
# File 'lib/suma/collection_config.rb', line 14

def self.from_file(path)
  from_yaml(File.read(path))
end

Instance Method Details

#to_file(path) ⇒ Object



18
19
20
# File 'lib/suma/collection_config.rb', line 18

def to_file(path)
  File.open(path, "w") { |f| f.write to_yaml }
end