From: Daniel Carrera Date: 2003-02-07T04:01:26+09:00 Subject: Returning a class. Hello, Is it possible to generate a class at run-time and return it? I've been working on a Polynomial class. But you can define polynomials over any ring, not just the reals. So I had this idea: Create a CommRing class (commutative ring). You inherit from that class and create a ring. class R < CommRing # definning @zero, @id, @minus_id, + and * end You automatically get the class method R.poly which corresponds to the polynomial ring over R. How would I do this? Thanks. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137