mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
13 lines
231 B
C
13 lines
231 B
C
#include "ruby.h"
|
|
|
|
static VALUE
|
|
bug_data_new(VALUE self, VALUE super)
|
|
{
|
|
return rb_data_define(super, "mem1", "mem2", NULL);
|
|
}
|
|
|
|
void
|
|
Init_data(VALUE klass)
|
|
{
|
|
rb_define_singleton_method(klass, "data_new", bug_data_new, 1);
|
|
}
|