title: Ruby split String into two sections and put in hash with predefined keys
body: <p>I don't know if this is actually good ruby code, but what I am trying to do is split a String into two separate sections and put the two as values to two specific keys. For example:</p>
  
  <pre><code>  name_a = "Henry Fillenger".split(/\s+/,2)
    name = {:first_name =&gt; name_a[0], :last_name =&gt; name_a[1]}
  </code></pre>
  
  <p>I was wondering if this could be done in a single line through some ruby magic however.</p>