Hi!

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/3deb36e25b583b8d/4e39ddef64babb1c?lnk=gst&q=factory+class&rnum=44#4e39ddef64babb1c

Looks like this will solve my problem. :)