function rb_define_method_id
-
void rb_define_method_id(VALUE klass, ID name, VALUE (*func)(), int argc)
-
klass に public メソッド name を定義します。 その実体は関数 func です。また argc の意味は rb_define_method と同じです。
void rb_define_method_id(VALUE klass, ID name, VALUE (*func)(), int argc)
klass に public メソッド name を定義します。 その実体は関数 func です。また argc の意味は rb_define_method と同じです。