title: Ruby - converting a string to a hash key
body: <p>For example, I have the string "The Dark Knight 10.0" and I need to convert it into a key value hash of the form: </p>
  
  <p>The Dark Knight => 10.0</p>
  
  <p>How can I create a block to convert all strings of this form that I fetch from a .db file into a key value hash of the above form?</p>
  
  <p>thanks for the help!</p>