Class: DTK::DSL::Template::V1::CommonModuleSummary

Inherits:
DTK::DSL::Template::V1 show all
Defined in:
lib/dsl/template/v1/common_module_summary.rb

Direct Known Subclasses

CommonModule

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



34
35
36
37
38
39
# File 'lib/dsl/template/v1/common_module_summary.rb', line 34

def parse!
  set :DSLVersion, input_key_value?(:DSLVersion) || dsl_version
  set :ModuleVersion, input_key_value(:ModuleVersion)
  merge parse_child(:module_ref, input_key_value(:Module), :parent_key => Constant::Module)
  set? :DependentModules, parse_child_elements?(:dependency, :DependentModules)
end