Sha256: 6b71a2091e5e1c65d72ca789759b2637e335069de31642832974fcf6a6094d98
Contents?: true
Size: 369 Bytes
Versions: 5
Compression:
Stored size: 369 Bytes
Contents
# We define BasicObject for compatibility with 1.9 if it isn't there yet. class BasicObject # Remove all but these methods # NOTE: __id__ is not there in 1.9, but would give a warning in 1.8 KEEP = %w[== equal? ! != instance_eval instance_exec __send__ __id__] (instance_methods - KEEP).each do |im| undef_method(im) end end unless defined?(BasicObject)
Version data entries
5 entries across 5 versions & 2 rubygems