| Class | Module |
| In: |
ext/nodewrap.c
|
| Parent: | Object |
rb_cBinding = rb_const_get(rb_cObject, rb_intern("Binding")); rb_define_method(rb_cBinding, "body", binding_body, 0);
Dump a module to a string. The module will be dumped along with its instance methods, class variables, names of included modules, name of superclass, its entire metaclass, and the name of the class.
Note that on ruby 1.8 and newer the module is temporarily modified while dumping in order to allow singleton classes to be dumped. To prevent access to the modifed module, Thread.critical is temporarily set, then restored to its original value once dumping is complete. Note also that because YARV does not support Thread.critical, the user must synchronize access to the class with a Mutex in order to prevent accessing the modified class.
Adds the method as an instance method to the given class.
To add a singleton method to a class, add the method to its singleton class.
Return the immediate superclass of a class or module. This may be a base class, a singleton class, or a module singleton.
When this module is unincluded from another, Nodewrap calls remove_features in this module. The default behavior is to remove the constants, methods, and module variables of this module from mod. If this module has not been included by mod, an exception will be raised.