Class: GmlDictionaryDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- GmlDictionaryDrop
- Defined in:
- lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop.rb
Instance Method Summary collapse
- #dictionary_entry ⇒ Object
- #file_name ⇒ Object
-
#initialize(dict) ⇒ GmlDictionaryDrop
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
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_entry ⇒ Object
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_name ⇒ Object
14 15 16 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop.rb', line 14 def file_name "#{name}.xml" end |
#name ⇒ Object
10 11 12 |
# File 'lib/metanorma/plugin/lutaml/liquid_drops/gml_dictionary_drop.rb', line 10 def name @dict.name.join("") end |