Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
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. More... | |
static void | define (VALUE klass, T mid, U func) |
Defines klass::mid as func, whose arity is N. More... | |
static void | define (VALUE klass, T mid, notimpl_type func) |
Defines klass::mid as func, whose arity is N. More... | |
Defines a method.
N | Arity of the function. |
U | The function in question |
Definition at line 527 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 561 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 544 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 554 of file cxxanyargs.hpp.