Class: Suma::CollectionManifest
- Inherits:
-
Metanorma::Collection::Config::Manifest
- Object
- Metanorma::Collection::Config::Manifest
- Suma::CollectionManifest
- Defined in:
- lib/suma/collection_manifest.rb
Overview
Pure data model for one node of a Metanorma collection manifest.
CollectionManifest extends the Metanorma config manifest to add the
schemas_only flag and an entry sub-collection. It owns only state:
attributes, YAML mappings, and the schema_config slot populated by
SchemaDiscovery. Tree-walking logic lives in ManifestTraverser; schema
I/O lives in SchemaDiscovery.
Instance Attribute Summary collapse
-
#schema_config ⇒ Object
Returns the value of attribute schema_config.
Instance Method Summary collapse
Instance Attribute Details
#schema_config ⇒ Object
Returns the value of attribute schema_config.
18 19 20 |
# File 'lib/suma/collection_manifest.rb', line 18 def schema_config @schema_config end |
Instance Method Details
#docref_from_yaml(model, value) ⇒ Object
39 40 41 |
# File 'lib/suma/collection_manifest.rb', line 39 def docref_from_yaml(model, value) model.entry = CollectionManifest.from_yaml(value.to_yaml) end |