aboutsummaryrefslogtreecommitdiffstats
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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/-test-/path_to_class/path_to_class.c b/ext/-test-/path_to_class/path_to_class.c
new file mode 100644
index 0000000000..9b88b48d40
--- /dev/null
+++ b/ext/-test-/path_to_class/path_to_class.c
@@ -0,0 +1,9 @@
+#include "ruby.h"
+
+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);
+}