Well, slightly less:

ObjectSpace.each_object(Class) {|obj|
 break obj if obj.name == clazz
}

Devin

Devin Mullins wrote:

> Good question. A crappy way:
>
> ObjectSpace.each_object {|obj|
>  break obj if Class === obj and obj.name == clazz
> }
>
> But I'm still young. There might be a non-crappy way.
>
> Devin