From: "Berger, Daniel" Date: 2002-06-05T22:44:37+09:00 Subject: RE: rdtool and extensions > -----Original Message----- > From: Danny van Bruggen [mailto:danny@froukepc.dhs.org] > Sent: Wednesday, June 05, 2002 8:24 AM > To: ruby-talk@ruby-lang.org > Subject: Re: rdtool and extensions > > > Do you want to do this? > > > /* > =begin > --- CDROM#number > Returns the unit number that was specified in (()). > =end */ > static VALUE cdrom_number(VALUE self) > { > return rb_iv_get(self, "@id"); > } > > You can run rd2 on .c (even .h) files. The parser will eat > it, because it > is just looking for =begin and =end. Oh, cool. Didn't even think of that. Thanks! Dan