title: titleize a hyphenated name
body: <p>Rails' <a href="https://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-titleize" rel="nofollow noreferrer"><code>titleize</code></a> method removes hyphens, and Ruby's <a href="https://ruby-doc.org/core-2.6.4/String.html#method-i-capitalize" rel="nofollow noreferrer"><code>capitalize</code></a> method does not capitalize the word that comes after a hyphen. I want something like the following:</p>
  
  <pre><code>"mary-joe spencer-moore" =&gt; "Mary-Joe Spencer-Moore"
  
  "mary-louise o'donnell" =&gt; "Mary-Louise O'Donnell"
  </code></pre>