title: assigning multiple variable in one line with the hash returning from the method in ruby
body: <p>I have a method that returns a hash map <code>{ :name =&gt; "Test", :desc =&gt; "Test Description }</code>. It will always return <code>:name</code> and <code>:description</code>. </p>
  
  <p>How can I assign 2 variables in with the returned hash.</p>
  
  <p>I could do this but it will call the method twice:</p>
  
  <pre><code>@name, @desc = get_name_desc_map[:name], get_name_desc_map[:desc] 
  </code></pre>
  
  <p>I only want to call the method once.</p>