Class: DTK::DSL::Template::V1::CommonModule

Inherits:
CommonModuleSummary show all
Defined in:
lib/dsl/template/v1/common_module.rb

Defined Under Namespace

Modules: Constant

Constant Summary

Constants inherited from DTK::DSL::Template::V1

VERSION

Instance Attribute Summary

Attributes included from NestedDSLFile::Mixin

#nested_file_content

Attributes included from Generation::Mixin

#filter, #top

Attributes included from Parsing::Mixin

#file_obj, #parent_key

Instance Method Summary collapse

Methods inherited from DTK::DSL::Template::V1

#dsl_version, #template_version

Methods inherited from DTK::DSL::Template

#add, create_for_generation, create_for_parsing, #initialize, #merge, #req, #set, #set?, #val

Methods included from Parsing::ClassMixin

#elements_collection_type, #empty_input_hash, #file_parser_output_array, #file_parser_output_hash, #parse_element, #parse_elements

Methods included from Generation::ClassMixin

#generate_elements

Methods included from Generation::Mixin

#generate!, #generate?, #generate_yaml_file_path__content_array, #generate_yaml_object, #generate_yaml_object?, #generate_yaml_text, #yaml_object_type

Methods included from Parsing::Mixin

#parse, #parser_output_type, #parsing_error

Constructor Details

This class inherits a constructor from DTK::DSL::Template

Instance Method Details

#parse!Object



33
34
35
36
37
# File 'lib/dsl/template/v1/common_module.rb', line 33

def parse!
  super
  set :Assemblies, parse_child_elements?(:assembly, :Assemblies)
  set :ComponentDefs, parse_child_elements?(:component_def, :ComponentDefs)
end