summaryrefslogtreecommitdiff
path: root/ext/-test-/path_to_class/path_to_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/path_to_class/path_to_class.c')
-rw-r--r--ext/-test-/path_to_class/path_to_class.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/-test-/path_to_class/path_to_class.c b/ext/-test-/path_to_class/path_to_class.c
index 9b88b48d40..c8c2831b09 100644
--- a/ext/-test-/path_to_class/path_to_class.c
+++ b/ext/-test-/path_to_class/path_to_class.c
@@ -1,9 +1,15 @@
#include "ruby.h"
+static VALUE
+path_to_class(VALUE klass, VALUE path)
+{
+ return rb_path_to_class(path);
+}
+
void
Init_path_to_class(void)
{
VALUE klass = rb_path2class("Test_PathToClass");
- rb_define_singleton_method(klass, "path_to_class", rb_path_to_class, 1);
+ rb_define_singleton_method(klass, "path_to_class", path_to_class, 1);
}