From ae5f45d2642a9eb2069146e8478196d3ffbceb7e Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 28 Jul 2023 12:31:38 +0100 Subject: bad hack! we now only invoke directly on `bos/meta/class`, so that's the only class that really needs to handle its attributes specially --- bos-dispatch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bos-dispatch.sh b/bos-dispatch.sh index d6bc463..cf73e91 100644 --- a/bos-dispatch.sh +++ b/bos-dispatch.sh @@ -26,7 +26,7 @@ function bos-dispatch/invoke() { qualified_method="$method" fi - if declare -F "$qualified_method" >/dev/null; then + if [[ "$class" == bos/meta/class ]] && declare -F "$qualified_method" >/dev/null; then local self bos-object-id/pack-self-into self "$class" "$self_id" "$qualified_method" "$@" -- cgit v1.2.3