Want to know what constants the Object class (or some other class) has? Use the constants method from Module (output is truncated): : Object « Reflection « Ruby






Want to know what constants the Object class (or some other class) has? Use the constants method from Module (output is truncated):


p Object.constants.sort 

 








Related examples in the same category

1.Reflection on Methods
2.inquire after instance methods with a method from Module
3.query about methods with the Object methods private_methods,
4.protected_methods
5.public_methods
6.singleton_methods.