Chris Carter
2/9/2007 12:48:00 AM
On 2/8/07, leandro nascimento camargo <leandroico@gmail.com> 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