[Ironruby-core] Getting value of IronRuby object's property using reflections
sridharans sivamurugan
lists at ruby-forum.com
Mon Apr 25 22:37:34 EDT 2011
hi All,
I'm having the ruby class of following structure. I need to gets its
value using reflection that it need to get its value using Property
Descriptor or PropertyInfo collection. I can get this only when I use
the attributes. If I have the object without any attributes its
returning the public methods of the Ruby object. I need to get the
properties using Property Descriptor, when there is no attributes in the
object.
Please share your Idea this is important for my project.
Thanks.
Sri
Class Structure
class Person
def name
@name
end
def name=(n)
@name = n
end
def age
@age
end
def age=(a)
@age = a
end
end
--
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core
mailing list