Class: Glossarist::DetailedDefinition

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/glossarist/detailed_definition.rb

Instance Method Summary collapse

Instance Method Details

#all_sourcesObject



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_contentObject



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