From: Brian Palmer Date: 2005-01-21T01:41:27+09:00 Subject: Re: C extensions using Singleton So just for clarity's sake: using rb_include_module skips the "included" callback that usually happens when a module is included? -- Brian ts wrote: >>>>>>"B" == Brian Palmer writes: >>>>>> >>>>>> > >B> ruby_rpg_class = rb_define_class("RPGEngine", rb_cObject); >B> rb_require("singleton"); >B> rb_include_module(ruby_rpg_class, rb_const_get(rb_cObject, >B> rb_intern("Singleton"))); > > Add this > > rb_funcall(rb_const_get(rb_cObject, rb_intern("Singleton")), > rb_intern("included"), 1, ruby_rpg_class); > > >Guy Decoux > > > > > > > >