diff options
Diffstat (limited to 'alv/module.moon')
| -rw-r--r-- | alv/module.moon | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alv/module.moon b/alv/module.moon index 0e95593..fad08ee 100644 --- a/alv/module.moon +++ b/alv/module.moon @@ -62,7 +62,11 @@ class Module destroy: => @registry\destroy! - __tostring: => "<Module #{@file}>" + --- get the module basename. + -- @treturn string + basename: => @file\match '([^/\\]+)$' + + __tostring: => "<Module #{@basename!}>" --- the last updated AST tree for this module. -- @tfield ?AST ast |
