Import post from my blog

http://taylor.fausak.me/2014/05/24/class-comparison-in-ruby/