title: Grails, where can methods be defined?
body: <p>I am wondering where methods can be defined and used in groovy/grails.</p>
  
  <p>Specifically in the bootstrap init, I would like to do something like this:</p>
  
  <pre><code>def init = {
    def util() {
      return 'so helpful!'
    }
  
    def someObj = new someObj(phrase: util()).save()
  }
  </code></pre>
  
  <p>Is this possible, or does <code>util</code> need to be defined outside of init?</p>