T
Torsten Robitzki
Hi,
I'm looking for a way to call a Class Method with the class name being a
variable string and the method name is fixed. Something like :
s = "ClassName"
eval ("#{s}.name")
But unfortunately I have to call two such functions in chain and both
have a block as parameter, so eval would be my last choice. So I'm
looking for a way to call the function like I could call them if it
would be an Object Method:
Class.get_objet_by_name("ClassName").sendname)
any suggestions?
best regards
I'm looking for a way to call a Class Method with the class name being a
variable string and the method name is fixed. Something like :
s = "ClassName"
eval ("#{s}.name")
But unfortunately I have to call two such functions in chain and both
have a block as parameter, so eval would be my last choice. So I'm
looking for a way to call the function like I could call them if it
would be an Object Method:
Class.get_objet_by_name("ClassName").sendname)
any suggestions?
best regards