| 1 |
#include "ruby.h" |
| 2 |
|
| 3 |
static VALUE |
| 4 |
bug_data_new(VALUE self, VALUE super) |
| 5 |
{ |
| 6 |
return rb_data_define(super, "mem1", "mem2", NULL); |
| 7 |
} |
| 8 |
|
| 9 |
void |
| 10 |
Init_data(VALUE klass) |
| 11 |
{ |
| 12 |
rb_define_singleton_method(klass, "data_new", bug_data_new, 1); |
| 13 |
} |