P
Pokkai Dokkai
is it possible to convert from a ruby object to Ruby class...
any idea.....
any idea.....
is it possible to convert from a ruby object to Ruby class...
any idea.....
What do you exactly have in mind ? Ruby classes are already Rubyis it possible to convert from a ruby object to Ruby class...
any idea.....
Pokkai said:is it possible to convert from a ruby object to Ruby class...
any idea.....
Sylvain said:What do you exactly have in mind ? Ruby classes are already Ruby
objects ... so if you need to manipulate classes as objects you already
can
obj = Class.new
<manipulate obj>
instance = obj.new
Sylvain
2007/10/10 said:source code here
---------------------
class Name
def initialize
end
.....
end
-----------------------
obj=Name.new
now my question is ,how to create above source code ?.
source code here
---------------------
class Name
def initialize
end
.....
end
-----------------------
obj=Name.new
now my question is ,how to create above source code from obj?.
actually jruby will create java object to ruby object
but that ruby object(from java object) is not in source code format
so i am asking this question ......
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.