|
Ruby 3.4.6p54 (2025-09-16 revision dbd83256b1cec76c69756ecb8758b9e1079833de)
|
Creation and modification of Ruby modules. More...
Go to the source code of this file.
Functions | |
| VALUE | rb_define_class (const char *name, VALUE super) |
| Defines a top-level class. | |
| VALUE | rb_define_module (const char *name) |
| Defines a top-level module. | |
| VALUE | rb_define_class_under (VALUE outer, const char *name, VALUE super) |
| Defines a class under the namespace of outer. | |
| VALUE | rb_define_module_under (VALUE outer, const char *name) |
| Defines a module under the namespace of outer. | |
| void | rb_include_module (VALUE klass, VALUE module) |
| Includes a module to a class. | |
| void | rb_extend_object (VALUE obj, VALUE mod) |
| Extend the object with the module. | |
| void | rb_prepend_module (VALUE klass, VALUE module) |
| Identical to rb_include_module(), except it "prepends" the passed module to the klass, instead of includes. | |
Creation and modification of Ruby modules.
Definition in file module.h.