title: Ruby's String#hex confusion
body: <p>I've found it weird that String#hex in Ruby doesn't return the right hex value for a given char. I might be misunderstanding the method, but take the following example:</p>
  
  <pre><code>'a'.hex
  =&gt; 10
  </code></pre>
  
  <p>Whereas the right hex value for 'a' would be 61:</p>
  
  <pre><code>'a'.unpack('H*')
  =&gt; 61
  </code></pre>
  
  <p>Am I missing something? What's hex for? Any hints appreciated!</p>
  
  <p>Thanks</p>