Class: Coradoc::CoreModel::Term
- Defined in:
- lib/coradoc/core_model/term.rb
Overview
Represents a definition term in a document
Terms are used in definition lists, glossaries, and terminology sections. They can have various types (acronym, symbol, preferred, etc.) and support multi-language content.
Instance Attribute Summary collapse
-
#definition ⇒ String?
Definition of the term.
-
#lang ⇒ String
Language code (default: ‘en’).
-
#source ⇒ String?
Source reference for the term.
-
#text ⇒ String?
The term text.
-
#type ⇒ String?
Term type (‘acronym’, ‘symbol’, ‘preferred’, ‘admitted’, ‘deprecated’).
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
#definition ⇒ String?
Returns definition of the term.
40 |
# File 'lib/coradoc/core_model/term.rb', line 40 attribute :definition, :string |
#lang ⇒ String
Returns language code (default: ‘en’).
36 |
# File 'lib/coradoc/core_model/term.rb', line 36 attribute :lang, :string, default: -> { 'en' } |
#source ⇒ String?
Returns source reference for the term.
44 |
# File 'lib/coradoc/core_model/term.rb', line 44 attribute :source, :string |
#text ⇒ String?
Returns the term text.
28 |
# File 'lib/coradoc/core_model/term.rb', line 28 attribute :text, :string |
#type ⇒ String?
Returns term type (‘acronym’, ‘symbol’, ‘preferred’, ‘admitted’, ‘deprecated’).
32 |
# File 'lib/coradoc/core_model/term.rb', line 32 attribute :type, :string |