Class: DTK::DSL::Template::V1::ComponentDef
- Inherits:
-
DTK::DSL::Template::V1
- Object
- DTK::DSL::Template
- DTK::DSL::Template::V1
- DTK::DSL::Template::V1::ComponentDef
- Defined in:
- lib/dsl/template/v1/component_def.rb,
lib/dsl/template/v1/component_def/semantic_parse.rb
Defined Under Namespace
Modules: Constant Classes: SemanticParse
Constant Summary
Constants inherited from DTK::DSL::Template::V1
Instance Attribute Summary
Attributes included from NestedDSLFile::Mixin
Attributes included from Generation::Mixin
Attributes included from Parsing::Mixin
Class Method Summary collapse
Instance Method Summary collapse
- #parse! ⇒ Object
-
#parser_output_type ⇒ Object
For parsing.
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
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
Constructor Details
This class inherits a constructor from DTK::DSL::Template
Class Method Details
.parse_elements(input_hash, parent_info) ⇒ Object
36 37 38 39 40 |
# File 'lib/dsl/template/v1/component_def.rb', line 36 def self.parse_elements(input_hash, parent_info) input_hash.inject(file_parser_output_hash) do |h, (name, component_def)| h.merge(name => parse_element(component_def, parent_info, :index => name)) end end |
Instance Method Details
#parse! ⇒ Object
42 43 44 45 46 |
# File 'lib/dsl/template/v1/component_def.rb', line 42 def parse! # TODO: This does not parse and just passes through; parse routines from dtk-server will be migrated # here merge input_hash end |
#parser_output_type ⇒ Object
For parsing
32 33 34 |
# File 'lib/dsl/template/v1/component_def.rb', line 32 def parser_output_type :hash end |