aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-12 20:06:33 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-12 20:06:37 -0700
commit63a19db0dc817d2929d8ef4bf12a15d5e9dbd015 (patch)
treef0067a6fabf270bfdc65ee742d1f1ad80ff57ba9 /nomsu_tree.moon
parentb0997a7dbffb636b8209055ed788fe1360aef25d (diff)
Working version.
Diffstat (limited to 'nomsu_tree.moon')
-rw-r--r--nomsu_tree.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/nomsu_tree.moon b/nomsu_tree.moon
index 315571a..89d51c4 100644
--- a/nomsu_tree.moon
+++ b/nomsu_tree.moon
@@ -37,6 +37,7 @@ Tree = (name, methods)->
__call: (source, ...)=>
if type(source) == 'string'
source = Source\from_string(source)
+ for i=1,select('#', ...) do assert(select(i,...))
assert(Source\is_instance(source))
inst = {:source, ...}
setmetatable(inst, @)