Mega Code Archive

 
Categories / Ruby / XML
 

Convert hash to configuration file

require 'yaml' puts ({ 'measurements' => 'metric' }.to_yaml) puts ({ :measurements => :metric }.to_yaml)