1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/path_to_class/path_to_class.c
naruse 2fbf66a7e1 Fix invalid test extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-08 10:27:01 +00:00

15 lines
273 B
C

#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", path_to_class, 1);
}