From: Gavin Sinclair Date: 2002-12-21T18:42:01+09:00 Subject: Re: String#to_class? From: "Tim Bates" > On Sat, 21 Dec 2002 07:36 pm, nobu.nokada@softhome.net wrote: > > eval($1) > > * Tim smacks head with palm. > > D'oh! > > (Respond same to Gavin's email.) > > Although, in the end I used Object.const_get because it makes my intentions a > bit clearer, although the error messages for a nonexistant class are almost > identical. I guess I didn't think of it because in that sort of situation I > consider eval a bit of a hack. I agree. I've never needed to do this before, and wouldn't have thought of Object.const_get. In fact, I only half get that... > Tim Bates > -- > tim@bates.id.au Gavin