|
Ruby 3.4.6p54 (2025-09-16 revision dbd83256b1cec76c69756ecb8758b9e1079833de)
|
Defines a method. More...
#include <cxxanyargs.hpp>
Static Public Member Functions | |
| static void | define (T mid, type func) |
| Defines Kernel#mid as func, whose arity is N. | |
| static void | define (T mid, U func) |
| Defines Kernel#mid as func, whose arity is N. | |
| static void | define (T mid, notimpl_type func) |
| Defines Kernel#mid as func, whose arity is N. | |
Defines a method.
| N | Arity of the function. |
| U | The function in question |
Definition at line 605 of file cxxanyargs.hpp.
|
inlinestatic |
Defines Kernel#mid as func, whose arity is N.
| [in] | mid | Name of the method to define. |
| [in] | func | Function that implements klass#mid. |
Definition at line 627 of file cxxanyargs.hpp.
|
inlinestatic |
Defines Kernel#mid as func, whose arity is N.
| [in] | mid | Name of the method to define. |
| [in] | func | Function that implements klass#mid. |
Definition at line 610 of file cxxanyargs.hpp.
|
inlinestatic |
Defines Kernel#mid as func, whose arity is N.
| [in] | mid | Name of the method to define. |
| [in] | func | Function that implements klass#mid. |
Definition at line 619 of file cxxanyargs.hpp.