title: Ruby method return more than one variable
body: <p>I need to return to my Rails view more than one variable from method... But how could i do this?</p>
  
  <p>For example now i have</p>
  
  <pre><code>def my1
   @price = 1
   @price
  end
  </code></pre>
  
  <p>but how could i also return other valuem somethin like:</p>
  
  <pre><code>def my1
   @qnt = 2
   @price = 1
   @price, @qnt
  end
  </code></pre>
  
  <p>?</p>
  
  <p>Also my idea is to split them to string like</p>
  
  <pre><code>@price + "/-/" + @qnt
  </code></pre>
  
  <p>and then just split them via /-/ in view.... But this is a bad practice...
  So how could i get from one method two or more variables?</p>