Class: GmlDictionaryDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(dict) ⇒ GmlDictionaryDrop

rubocop:disable Lint/MissingSuper



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

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

Instance Method Details

#dictionary_entryObject



18
19
20
21
22
# File 'lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop.rb', line 18

def dictionary_entry
  @dict.dictionary_entry.map do |entry|
    GmlDictionaryEntryDrop.new(entry)
  end
end

#file_nameObject



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

def file_name
  "#{name}.xml"
end

#nameObject



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

def name
  @dict.name.join("")
end