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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How can I create a ruby class in runtime
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password