Hello!

 

I have another code question…

 

Can I call an object method by using a variable?

 

I’ve tried something like this:

 

 

propertie=”className”

a = Item(80).’#{propertie}’

 

And obviously doesn’t work…

 

I’ve also tried:

 

a = Item(80).{propertie}

 

but this is a call to a hash…

 

 

Any help would be really appreciated…

Thanks in Advance!

 

 

Rodrigo Julian Martin

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to