def convert_to_cool_format(result_node, configuration_node, encryption_key)
      configuration_node.each do |key, value|
        if value.is_a?(Hash)
          result_node[key] = OpenStruct.new
          convert_to_cool_format(result_node[key], value, encryption_key)
        else
          result_node[key] = Value.new(value, encryption_key)
        end
      end

      result_node
    end
def convert_to_cool_format(result_node, configuration_node, encryption_key)
      configuration_node.each do |key, value|
        if value.is_a?(Hash)
          result_node[key] = OpenStruct.new
          convert_to_cool_format(result_node[key], value, encryption_key)
        else
          result_node[key] = Value.new(value, encryption_key)
        end
      end

      result_node
    end
def convert_to_cool_format ( result_node , configuration_node , encryption_key ) configuration_node . each do | key , value | if value . is_a? ( Hash ) result_node [ key ] = OpenStruct . new convert_to_cool_format ( result_node [ key ] , value , encryption_key ) else result_node [ key ] = Value . new ( value , encryption_key ) end end result_node end
Performs two conversions:

 1. the configuration as a whole is converted to an OpenStruct
 2. the values are converted to SimpleScripting::Configuration::Value
Performs two conversions :