Fix invalid test extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0bfa4abd1b
commit
2fbf66a7e1
@ -1,9 +1,15 @@
|
|||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
|
|
||||||
|
static VALUE
|
||||||
|
path_to_class(VALUE klass, VALUE path)
|
||||||
|
{
|
||||||
|
return rb_path_to_class(path);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Init_path_to_class(void)
|
Init_path_to_class(void)
|
||||||
{
|
{
|
||||||
VALUE klass = rb_path2class("Test_PathToClass");
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user