Class Comparison in Ruby

Cross post of <http://taylor.fausak.me/2014/05/24/class-comparison-in-ruby/>.