Class: Glossarist::RelatedConcept
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Glossarist::RelatedConcept
- Defined in:
- lib/glossarist/related_concept.rb
Instance Method Summary collapse
Instance Method Details
#ref_from_yaml(model, value) ⇒ Object
20 21 22 |
# File 'lib/glossarist/related_concept.rb', line 20 def ref_from_yaml(model, value) model.ref = Citation.of_yaml(value) end |
#ref_to_yaml(model, doc) ⇒ Object
16 17 18 |
# File 'lib/glossarist/related_concept.rb', line 16 def ref_to_yaml(model, doc) doc["ref"] = Citation.as_yaml(model.ref)["ref"] if model.ref end |