Elias Athanasopoulos
12/2/2003 6:54:00 PM
On Thu, Nov 27, 2003 at 06:52:11AM +0900, Tim Hunter wrote:
> On Thu, 27 Nov 2003 05:42:22 +0900, Elias Athanasopoulos wrote:
>
> > Hello!
> >
> > I want to get the class of an object through the Ruby C API. Actually, I
> > want what foo.class does.
> >
>
> VALUE foo;
> char *name;
>
> name = rb_class2name(CLASS_OF(foo));
That was the trick. Thanx. Apologies for my delayed answer.
Regards,
--
University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky