title: Storing result of switch case in Ruby
body: <p>I have a switch case as follows:</p>
  
  <pre><code>def result
    case params[:q]
    when "r4c_001"
      result = "r4c"
      description = "001"
    end
  end
  </code></pre>
  
  <p>When I am dealing with single value inside <code>when</code>, then I can also implement it as:</p>
  
  <pre><code>def result
    result = case params[:q]
    when "r4c_001"
      "r4c"
    end
  end
  </code></pre>
  
  <p>How can I do it for multiple values, like:</p>
  
  <pre><code>def result
    result, description = case params[:q]
    when "r4c_001"
      result = "r4c"
      description = "001"
    end
  end
  </code></pre>
  
  <p>Your help is appreciated.</p>