summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-22 14:24:08 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-22 14:24:08 +0100
commit1d87fa9db8b0ed0dcea4498ba430ba0cdb0edb23 (patch)
tree5e49083647e525484193b19748f04361490a7343 /scripts/toy.groovy
parentFix getDay (diff)
downloadtoy-1d87fa9db8b0ed0dcea4498ba430ba0cdb0edb23.zip
Hack around wait and metaClass
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index bd18e40..d35ced3 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -1603,6 +1603,10 @@ return new Object() {
final removeRequestable = { String name ->
requestables.remove(name);
};
+ // This exists because calling .wait(t) in a metaClass method
+ // calls it on the metaClass, not on the original object
+ void pause(int t) { wait(t); }
+
String main()
{