aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.moon
diff options
context:
space:
mode:
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, @)