On Aug 20, 7:16 pm, Rolando Abarca <funkas... / gmail.com> wrote: > This is how i'm currently getting a class object from a name: > > cname = "A::B::C::D" > klass = cname.split("::").inject(Kernel) {|a,b| a.const_get(b)} > > I think it's pretty elegant, but I'm always happy to hear other ways > to do it ;-) > Anyone does this in some other way? (I don't want to eval code...) > > regards, > -- > Rolando Abarca > Phone: +56-9 97851962 > > PGP.sig > 1KDownload I've seen little helper methods for this, but never so elegant. Nice!