Simon Krahnke
4/24/2008 5:30:00 PM
* Varun Goel <varun.rajeshkumar@gmail.com> (17:24) schrieb:
> Hi,
> U said that u r able to create class dynamically i used same link but
> i m not able to create class dynamically please help me with some code
> snippet.
> Please help me i am facing this problem from last two weeeks??
You can create a class by Class.new. For example:
c = Class.new do
def moo
"moo!"
end
end
obj = c.new
puts obj.moo
mfg, simon .... l