Class: Glossarist::SharedNonConceptEntity
- Inherits:
-
NonConceptEntity
- Object
- Lutaml::Model::Serializable
- NonConceptEntity
- Glossarist::SharedNonConceptEntity
- Defined in:
- lib/glossarist/shared_non_concept_entity.rb
Overview
Dataset-shared non-concept entity — a NonConceptEntity with a stable identity. Figure, Table, and Formula inherit from this; NonVerbRep (concept-local, positional) inherits from NonConceptEntity directly.
The id is the stable identifier used for cross-referencing
(e.g. figures/fig_A.23.yaml → id: fig_A.23). The identifier is
the human-readable label (e.g. "A.23") used for display and AsciiDoc
xref targets like <<fig_A.23>>.
Instance Method Summary collapse
Methods inherited from NonConceptEntity
Instance Method Details
#all_ids ⇒ Object
25 26 27 |
# File 'lib/glossarist/shared_non_concept_entity.rb', line 25 def all_ids [id].compact end |
#find_by_id(target_id) ⇒ Object
21 22 23 |
# File 'lib/glossarist/shared_non_concept_entity.rb', line 21 def find_by_id(target_id) id == target_id ? self : nil end |