Skip to content

Instantly share code, notes, and snippets.

@saranicole
Created July 15, 2014 14:04
Show Gist options
  • Select an option

  • Save saranicole/4c3b13fd11ad2bf33c4e to your computer and use it in GitHub Desktop.

Select an option

Save saranicole/4c3b13fd11ad2bf33c4e to your computer and use it in GitHub Desktop.
ScriptMethods
def map = [:]
map.addNumbers = {a,b -> c = a + b; c }
try {
return map
}
catch(Exception e){
logger.info(e.localizedMessage)
}
return true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment