title: How to do multiple assignment with return values in ruby (1.9) case statement?
body: <p>Doing this works fine:</p>
  
  <pre><code>q = case period_group
    when 'day' then [7, 'D'] 
    when 'week' then [7, 'WW'] 
    else ['12','MM']
  end
  limit,pattern = q[0],q[1]
  </code></pre>
  
  <p>But my first try:</p>
  
  <pre><code>limit, pattern = case period_group
    when 'day' then 7, 'D' 
    when 'week' then 7, 'WW' 
    else '12','MM'
  end
  </code></pre>
  
  <p>ends up in a SyntaxError:</p>
  
  <pre><code>syntax error, unexpected ',', expecting keyword_end
        when 'day' then 7, 'D' 
  </code></pre>
  
  <p>Am I missing something?</p>