Class: Coradoc::CoreModel::DefinitionItem
- Defined in:
- lib/coradoc/core_model/definition_item.rb
Overview
Represents a definition list item (term with definitions)
DefinitionItem contains a term and its associated definitions.
Instance Attribute Summary collapse
-
#definitions ⇒ Array<String>
The definitions for the term.
-
#term ⇒ String?
The term being defined.
Attributes inherited from Base
#element_attributes, #id, #metadata_entries, #title
Method Summary
Methods inherited from Base
#accept, #attr, #metadata, #semantically_equivalent?, #set_attr, #set_metadata
Instance Attribute Details
#definitions ⇒ Array<String>
Returns the definitions for the term.
21 |
# File 'lib/coradoc/core_model/definition_item.rb', line 21 attribute :definitions, :string, collection: true |
#term ⇒ String?
Returns the term being defined.
17 |
# File 'lib/coradoc/core_model/definition_item.rb', line 17 attribute :term, :string |