fix_basic_object_inheritance

fix_basic_object_inheritance()
Instance Public methods

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.

doc_ruby_on_rails
2015-05-04 17:25:00
Comments
Leave a Comment

Please login to continue.