title: How would you parse a url in Ruby to get the main domain?
body: <p>I want to be able to parse any URL with Ruby to get the main part of the domain without the <code>www</code> (just the <code>example.com</code>)</p>