object.send(invoked_method_name) is very useful. But i need to do it on class like Model.send(method_name_by_variable) and this I can’t do. Any advice? Thanks
object.send(invoked_method_name) is very useful. But i need to do it on class like Model.send(method_name_by_variable)
Share
Model.send(method_name_by_variable)should be possible,ifmethod_name_by_variableis in the scope ofModelHow you can test it (I use
Stringin my examples, withModelis should be the same.Scope
test if your method is a public method: