Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is instance_eval defined in Ruby 1.9.2? [closed]

Forgive my ignorance, but I must be missing something here. I can find the documentation for instance_eval for ruby 1.8.7 in the Object class, but I just cannot find it anywhere for 1.9.2. I know the functionality is still supported since I'm using it. Is there some secret parent class that it has been moved to?

like image 276
elmt Avatar asked Jan 28 '11 09:01

elmt


1 Answers

If you do Object.superclass you will see that that is BasicObject which itself has no superclass. Using BasicObject.public_methods reveals that instance_eval is defined there.

There does not seem to be any documentation for the methods on BasicObject.

like image 55
mikej Avatar answered Oct 14 '22 03:10

mikej