Class: DTK::DSL::ServiceAndComponentInfo::TransformFrom::Parser::TopDSL::ModuleInfo

Inherits:
DTK::DSL::ServiceAndComponentInfo::TransformFrom::Parser::TopDSL show all
Defined in:
lib/dsl/service_and_component_info/transform_from/parser/top_dsl/module_info.rb

Instance Attribute Summary

Attributes inherited from Parser

#info_object, #output_hash

Instance Method Summary collapse

Methods inherited from Parser

update_output_hash?

Instance Method Details

#update_output_hash?Boolean

Returns:

  • (Boolean)


22
23
24
25
26
# File 'lib/dsl/service_and_component_info/transform_from/parser/top_dsl/module_info.rb', line 22

def update_output_hash?
  # if these attributes are in output_hash, already, they will match
  output_hash['module']  ||= "#{module_ref.namespace}/#{module_ref.module_name}"
  output_hash['version'] ||= module_ref.version
end