fork download
  1. hash = {:a => 1, :b => 1.123, :c => 'abc'}
  2.  
  3. puts "{\n" + hash.collect {|key, val| "\t:#{key} => " + (val.is_a?(String) ? "'#{val}'" : val).to_s + ",\n"}.join + "}"
Success #stdin #stdout 0.01s 7456KB
stdin
Standard input is empty
stdout
{
	:a => 1,
	:b => 1.123,
	:c => 'abc',
}