path_to_class.c   [plain text]


#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);
}