Jeroen van Ingen wrote in post #1024083:
> My problem is that when I add a file to the files, it must be
> automatically included in the list of classes, so I can create an object
> like I said; eval(classname)
>
> Your solution is ugly for me in another way. Let me explain...
> All my files are included in the same dir and subdirs. So it's not
> needed to tell every single file that it must register itself. I would
> like to it in one place, not in every single file.

possibly something like this??

http://pastebin.com/fnZkJp3L

-- 
Posted via http://www.ruby-forum.com/.