Re: c api, getting class

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