I only recently found out about ruby and I'm interested in embedding the
ruby interpretor into a c project(A game).  But I'm very confused about how
to call ruby methods from c.

I know you need to use rb_funcall but how do you get the VALUE for the 1st
parameter(VALUE recv)? and what exactly is this parameter for?

I can't find any example programs embedding ruby in c or much documentation
except for the extending ruby chapter in pragmatic programmer which doesn't
seem to explain this.

Thanks

Jamie