Class: ConfSources::CommandLine
Defined Under Namespace
Classes: Wrapper
Instance Attribute Summary
Attributes inherited from Default
Instance Method Summary collapse
-
#initialize ⇒ CommandLine
constructor
A new instance of CommandLine.
Methods inherited from Default
#[], #export_to, #is_defined?, #merge, #merge!, #to_a, #to_h, #to_pairs, #to_s, #validate!
Constructor Details
#initialize ⇒ CommandLine
117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/confsources.rb', line 117 def initialize result = Wrapper.start unless result.is_a? Hash exit 0 end = result.collect { |k,v| candidate = ConfMaker::.select{|e|e[:name] == k.to_sym}.first.clone candidate[:value] = v candidate } end |