summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/-test-/path_to_class/path_to_class.c
blob: c8c2831b0958218711a1364f6ac64d556349e353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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", path_to_class, 1);
}