Forum: Ruby Re: c api, getting class

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
87e9a89c53ccf984db792113471c2171?d=identicon&s=25 Kroeger, Simon (ext) (Guest)
on 2006-02-08 13:41
(Received via mailing list)
> > Use rb_path2class("Myclass::UnknownFormat").
>
> This is exactly what I was looking for; seems somewhat undocumented.

Without having a chance of testing right now, I would say
rb_define_class
is just perfect. (Re)opening a class in ruby is legal and should work
from
c also.

cheers

Simon
This topic is locked and can not be replied to.