>>>>> "M" == Michael Neumann <neumann / s-direktnet.de> writes:

M> in the init function of the extension.

 I can confirm

pigeon% cat tt.c
#include <ruby.h>
 
void Init_tt()
{
    VALUE tt_cTt = rb_define_class("Tt", rb_cObject);
    rb_funcall(tt_cTt, rb_intern("attr_accessor"), 1, rb_str_new2("name"));
}
pigeon%
 
pigeon% ruby -rtt -e 'p Tt.instance_methods'
["name", "name="]
pigeon% 

pigeon% cat test.rb
require "tt"
p Tt.instance_methods
p Tt.private_instance_methods
 
pigeon%

pigeon% ruby -rtest -e 1
[]
["name", "name="]
pigeon% 


Guy Decoux