summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/class.c b/class.c
index a7fbf7a..00b6b88 100644
--- a/class.c
+++ b/class.c
@@ -230,7 +230,7 @@ rb_define_method(class, name, func, argc)
VALUE (*func)();
int argc;
{
- rb_add_method(class, rb_intern(name), NEW_CFUNC(func, argc), 0);
+ rb_add_method(class, rb_intern(name), NEW_CFUNC(func, argc), NOEX_PUBLIC);
}
void
@@ -238,7 +238,7 @@ rb_undef_method(class, name)
struct RClass *class;
char *name;
{
- rb_add_method(class, rb_intern(name), Qnil, 0);
+ rb_add_method(class, rb_intern(name), Qnil, NOEX_PUBLIC);
}
void
@@ -248,7 +248,7 @@ rb_define_private_method(class, name, func, argc)
VALUE (*func)();
int argc;
{
- rb_add_method(class, rb_intern(name), NEW_CFUNC(func, argc), 1);
+ rb_add_method(class, rb_intern(name), NEW_CFUNC(func, argc), NOEX_PRIVATE);
}
VALUE