root/ext/-test-/path_to_class/path_to_class.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. path_to_class
  2. Init_path_to_class

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

/* [previous][next][first][last][top][bottom][index][help] */