title: Is is possible to have strings evaluate as variables in groovy?
body: <p>I am playing with grails and groovy. I wondered if its possible to do something like this.</p>
  
  <pre><code>def inbuiltReqAttributes = ['actionName','actionUri','controllerName','controllerUri']
  inbuiltReqAttributes.each() { print " ${it} = ? " }; 
  </code></pre>
  
  <p>what would i put in the ? to get groovy to evaluate the current iterator value as a variable e.g. to do it the long way</p>
  
  <pre><code>print " actionName = $actionName "
  </code></pre>
  
  <p>Thanks</p>