From: Chris Carter Date: 2007-02-09T09:47:42+09:00 Subject: Re: is_class from a String? On 2/8/07, leandro nascimento camargo wrote: > I have a dynamic String entry and I want know if it represents some > any existing Class name (in a given modules set loaded)? > > How to do that. > PS.: I'm using Rails and I need to know if there is some Model with a > given name (or symbol). > > > Hi Leandro: >> class Model >> end => nil >> Module.const_get("Model").is_a? Class => true -- Chris Carter concentrationstudios.com brynmawrcs.com