From: Nobuyoshi Nakada Date: 2008-10-01T10:16:59+09:00 Subject: [ruby-core:19061] Re: Ruby class name from C extensions Hi, At Wed, 1 Oct 2008 09:32:19 +0900, Joe Damato wrote in [ruby-core:19059]: > fprintf(stderr, "class name: %s\n", > RSTRING(rb_class_path(obj->as.basic.klass))->ptr); For anonymous class, RSTRING_PTR(rb_class_path(CLASS_OF(obj))). > class name: # Why doesn't it output something like: > # ? The former is an anonymous class, and the latter is an instance of a named class. -- Nobu Nakada