ruby hash syntax converters