Get ruby hash pattern to work without whitespace