How can I call a method based on the value of a string in Groovy? For example instead of
switch (val) { case \"one\": Obj.one() break case \"two\":
Dynamic method invocation looks like this
obj."$val"()