Avoid object_id warning when using andand in Ruby 1.9?

When I load andand in Ruby 1.9, I get a warning

andand.rb:111: warning: undefining 'object_id' may cause serious problem 

Does anyone know a way other than changing and not deleting object_id to avoid this warning?

Thanks!

+4
source share
1 answer

You are in luck - it has just been fixed with a fix for this problem .

Unfortunately, from 2011-03 this stone was not published with this patch. However, there is a plug whose sole purpose is to have this patch: ryansch-andand

Good news! Version v1.3.3 was ported to RubyGems in 2012-03-28 and includes this fix.

+5
source

All Articles