Sha256: 01aa340b9325a1756178022e129f3542680253bfeefccd3ae180b30871b3ef07

Contents?: true

Size: 469 Bytes

Versions: 22

Compression:

Stored size: 469 Bytes

Contents

#include "ruby.h"

VALUE Looksee_internal_class(VALUE self, VALUE object) {
  return CLASS_OF(object);
}

void Init_rbx(void) {
  VALUE mLooksee = rb_const_get(rb_cObject, rb_intern("Looksee"));
  VALUE mAdapter = rb_const_get(mLooksee, rb_intern("Adapter"));
  VALUE mBase = rb_const_get(mAdapter, rb_intern("Base"));
  VALUE mRubinius = rb_define_class_under(mAdapter, "Rubinius", mBase);
  rb_define_method(mRubinius, "internal_class", Looksee_internal_class, 1);
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
looksee-1.0.0-universal-java-1.6 ext/rbx/rbx.c
looksee-1.0.0 ext/rbx/rbx.c