From: Tim Hunter Date: 2005-05-31T22:05:22+09:00 Subject: Re: rb_struct_new nornagon wrote: > Hi. I'm documenting a C extension, and I'm having a little bit of > trouble figuring out what rb_struct_new does. I would check the return > value of that particular function, but I am currently running windows > and the extension is linux-only. > > Could anyone point me in the right direction? > > Thanks. It's basically the same as the Ruby code "Struct.new". The first argument is the name of the new class. Succeeding arguments are the names of the structure fields. The last argument is NULL. It returns a new Struct class.