Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Creation and modification of Ruby methods. More...
#include "ruby/internal/attr/nonnull.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/value.h"
#include "ruby/backward/2/stdarg.h"
Go to the source code of this file.
Functions | |
void | rb_define_method (VALUE klass, const char *mid, VALUE(*func)(ANYARGS), int arity) |
Defines a method. | |
void | rb_define_module_function (VALUE klass, const char *mid, VALUE(*func)(ANYARGS), int arity) |
Defines a module function for a module. | |
void | rb_define_global_function (const char *mid, VALUE(*func)(ANYARGS), int arity) |
Defines a global function. | |
void | rb_undef_method (VALUE klass, const char *name) |
Defines an undef of a method. | |
void | rb_define_alias (VALUE klass, const char *dst, const char *src) |
Defines an alias of a method. | |
void | rb_define_attr (VALUE klass, const char *name, int read, int write) |
Defines public accessor method(s) for an attribute. |
Creation and modification of Ruby methods.
Definition in file method.h.