diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-06 14:59:29 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-06 14:59:29 +0100 |
commit | 6c20a8daf94307b87a0861c9e143c74cc4aca711 (patch) | |
tree | 1ae2ab401d313288d3c551d8a6d90ea6a6da5f80 /scripts/toy.groovy | |
parent | No writes to parent vars from metaClass methods (diff) | |
download | toy-6c20a8daf94307b87a0861c9e143c74cc4aca711.zip |
Make the activityList of objects
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 295e500..8d193fb 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -304,7 +304,9 @@ return new Object() { final activityList = [:]; final addActivity = { String name, func -> - activityList[name] = func; + activityList[name] = [ + func: func + ]; } final namedEvents = [:]; |