Class: Glossarist::DetailedDefinition
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Glossarist::DetailedDefinition
show all
- Defined in:
- lib/glossarist/detailed_definition.rb
Instance Method Summary
collapse
Instance Method Details
#all_sources ⇒ Object
16
17
18
19
20
|
# File 'lib/glossarist/detailed_definition.rb', line 16
def all_sources
list = sources.to_a
examples.each { |example| list.concat(example.all_sources) }
list
end
|
#text_content ⇒ Object
22
23
24
25
26
27
|
# File 'lib/glossarist/detailed_definition.rb', line 22
def text_content
texts = []
texts << content if content
examples.each { |example| texts.concat(example.text_content) }
texts
end
|