[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How can I create a ruby class in runtime

sayoyo Sayoyo

12/23/2005 8:22:00 PM

Hi,

Does anyone know how to create a ruby class in runtime?

ex:
class Parent
def...
def...
end

in runtime, we want to create a class "child" inherited from "parent",
it is possible?

thanks you very much

sayoyo

2 Answers

Florian Groß

12/23/2005 8:31:00 PM

0

Florian Frank

12/23/2005 8:31:00 PM

0

sayoyo@yahoo.com wrote:

>in runtime, we want to create a class "child" inherited from "parent",
>it is possible?
>
>
klass = Class.new Parent

--
Florian Frank