method

fix_basic_object_inheritance

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: Store
fix_basic_object_inheritance() public

Fixes the erroneous BasicObject < Object in 1.9.

Because we assumed all classes without a stated superclass inherit from Object, we have the above wrong inheritance.

We fix BasicObject right away if we are running in a Ruby version >= 1.9. If not, we may be documenting 1.9 source while running under 1.8: we search the files of BasicObject for “object.c”, and fix the inheritance if we find it.

Show source
Register or log in to add new notes.