Constant time equality for ruby.