From: ts Date: 2002-02-11T00:00:04+09:00 Subject: Re: Ruby Embedded Documentation >>>>> "G" == GOTO Kentaro writes: G> I wrote a bootstrap document generator for ext: G> http://www.notwork.org/~gotoken/ruby/p/as-is/docproto.rb G> But this is not good at least when the target library is modified. Why this ? pigeon% grep \"new src/*.c src/common.c: rb_define_singleton_method(bdb_cCommon, "new", bdb_s_new, -1); src/common.c: rb_define_singleton_method(bdb_cQueue, "new", bdb_queue_s_new, -1); src/cursor.c: rb_undef_method(CLASS_OF(bdb_cCursor), "new"); src/env.c: rb_define_singleton_method(bdb_cEnv, "new", bdb_env_s_new, -1); src/lock.c: rb_undef_method(CLASS_OF(bdb_cLockid), "new"); src/lock.c: rb_undef_method(CLASS_OF(bdb_cLock), "new"); src/log.c: rb_undef_method(CLASS_OF(bdb_cLsn), "new"); src/recnum.c: rb_define_singleton_method(bdb_cRecnum, "new", bdb_recnum_s_new, -1); src/transaction.c: rb_undef_method(CLASS_OF(bdb_cTxn), "new"); pigeon% pigeon% docproto.rb -r src/bdb -f ruby BDB | grep new ./docproto.rb:5: warning: already initialized constant VERSION pigeon% Sometimes I use ::new, not only #initialize Guy Decoux