How to declare a method inside a closure.Or which is better to use method or closure. I have a closure and in that closure i have a method to call and i defined method as
def getBindedGenes(Long colId) { ........ } But when i used codenarc plugin for code review it is showing the rule as GrailsPublicControllerMethod and the message as The Grails controller has a public method getBindedGenes. This should be a closure property or moved What is the cause and what is happening exactly.
Thanks in advance