class DTK::DSL::Template::V1::ComponentDef

Public Class Methods

parse_elements(input_hash, parent_info) click to toggle source
# 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

Public Instance Methods

parse!() click to toggle source
# 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() click to toggle source

For parsing

# File lib/dsl/template/v1/component_def.rb, line 32
def parser_output_type 
  :hash
end