Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)
|
Defines a method. More...
#include <cxxanyargs.hpp>
Static Public Member Functions | |
static void | define (VALUE klass, T mid, type func) |
Defines klass#mid as func, whose arity is N. | |
static void | define (VALUE klass, T mid, U func) |
Defines klass#mid as func, whose arity is N. | |
static void | define (VALUE klass, T mid, notimpl_type func) |
Defines klass#mid as func, whose arity is N. | |
Defines a method.
N | Arity of the function. |
U | The function in question |
Definition at line 529 of file cxxanyargs.hpp.
|
inlinestatic |
Defines klass#mid as func, whose arity is N.
[in] | klass | Where the method lives. |
[in] | mid | Name of the method to define. |
[in] | func | Function that implements klass#mid. |
Definition at line 563 of file cxxanyargs.hpp.
|
inlinestatic |
Defines klass#mid as func, whose arity is N.
[in] | klass | Where the method lives. |
[in] | mid | Name of the method to define. |
[in] | func | Function that implements klass#mid. |
Definition at line 546 of file cxxanyargs.hpp.
|
inlinestatic |
Defines klass#mid as func, whose arity is N.
[in] | klass | Where the method lives. |
[in] | mid | Name of the method to define. |
[in] | func | Function that implements klass#mid. |
Definition at line 556 of file cxxanyargs.hpp.