Class: GmlDictionaryEntryDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_entry_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(dict_entry) ⇒ GmlDictionaryEntryDrop

rubocop:disable Lint/MissingSuper



6
7
8
# File 'lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_entry_drop.rb', line 6

def initialize(dict_entry) # rubocop:disable Lint/MissingSuper
  @dict_entry = dict_entry
end

Instance Method Details

#descriptionObject



14
15
16
# File 'lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_entry_drop.rb', line 14

def description
  @dict_entry.definition.description
end

#nameObject



10
11
12
# File 'lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_entry_drop.rb', line 10

def name
  @dict_entry.definition.name.first.content
end