Sha256: 1f7f18e2a2a95df0373ab6814224d420d0db0ad3340ab11b141f6a4770598c6e

Contents?: true

Size: 404 Bytes

Versions: 12

Compression:

Stored size: 404 Bytes

Contents

#include "classpath.h"

VALUE
path2class(path)
    char *path;
{
    VALUE v = rb_path2class(path);

    if (TYPE(v) != T_CLASS) {
	rb_raise(rb_eArgError, "%s does not refer class", path);
    }
    return v;
}

VALUE
path2module(path)
    char *path;
{
    VALUE v = rb_path2class(path);

    if (TYPE(v) != T_MODULE) {
	rb_raise(rb_eArgError, "%s does not refer module", path);
    }
    return v;
}


Version data entries

12 entries across 6 versions & 2 rubygems

Version Path
ruby-internal-0.7.3 ext/cached/ruby-1.8.1/internal/module/classpath.c
ruby-internal-0.7.3 ext/cached/ruby-1.8.0/internal/module/classpath.c
ruby-internal-0.7.2 ext/cached/ruby-1.8.1/internal/module/classpath.c
ruby-internal-0.7.2 ext/cached/ruby-1.8.0/internal/module/classpath.c
ruby-internal-0.7.1 ext/cached/ruby-1.8.0/internal/module/classpath.c
ruby-internal-0.7.1 ext/cached/ruby-1.8.1/internal/module/classpath.c
ruby-internal-0.7.0 ext/cached/ruby-1.8.0/internal/module/classpath.c
ruby-internal-0.7.0 ext/cached/ruby-1.8.1/internal/module/classpath.c
ruby-internal-0.6.0 ext/cached/ruby-1.8.0/internal/module/classpath.c
ruby-internal-0.6.0 ext/cached/ruby-1.8.1/internal/module/classpath.c
nodewrap-0.5.0 ext/cached/ruby-1.8.0/classpath.c
nodewrap-0.5.0 ext/cached/ruby-1.8.1/classpath.c