Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
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.