How to create a ruby object via the c-api?

Hello,

how is it possible to create a certain ruby object via the c-api?
For some base types there are methods in ruby.h ala rb_ary_new etc.
But how to create a Regexp object?
or a custom class object?

I have read the chapter “Extending Ruby” in Programming Ruby and the
README.EXT inside ruby source - is there any other documentation,
dealing with the c-api?

Best Regards,
Matthias

···

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com