| Start |
|---|
View an object's methods Inspecting an ObjectYou can find the public methods an object can respond to using either the For a more targeted list, you can remove methods common to all objects, e.g. Alternatively, you can pass You can find the private and protected methods of an object using As with Inspecting a Class or ModuleIn addition to Finally, if you forget the names of most of these in the future, you can find all of these methods using |
| View an object's Instance Variables It is possible to query an object about its instance variables using The names of instance variables include the |
| View Global and Local Variables The Unlike instance variables there are no methods specifically for getting, setting, or removing global or local variables. Looking for such functionality is usually a sign that your code should be rewritten to use a Hash to store the values. However, if you must modify global or local variables by name, you can use By default, In the above, |
| View Class Variables Classes and modules have the same methods for introspecting instance variables as any other object. Class and modules also have similar methods for querying the class variables ( Similar to instance variables, the name of class variables must begin with |
Read Article
https://develop.horje.com/learn/1434/reference