aboutsummaryrefslogtreecommitdiffstats
path: root/alv/module.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-20 14:36:58 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commit83327510c619f6fd0fc81fbf6be6ae8bb7b1f0fa (patch)
tree9a4346c53b0a77eaacc3f0520b5b941d51c70070 /alv/module.moon
parentonce again, revamp windows distribution (diff)
downloadalive-83327510c619f6fd0fc81fbf6be6ae8bb7b1f0fa.tar.gz
alive-83327510c619f6fd0fc81fbf6be6ae8bb7b1f0fa.zip
alv-fltk: clear log option, autoclear option
Diffstat (limited to 'alv/module.moon')
-rw-r--r--alv/module.moon6
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