summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-07-28 12:31:38 +0100
committerdakkar <dakkar@thenautilus.net>2023-07-28 12:31:38 +0100
commitae5f45d2642a9eb2069146e8478196d3ffbceb7e (patch)
tree9b1509591fb530331f18ff788f259c664cf44be2
parentprobably fix exposing attributes (diff)
downloadbash-object-system-ae5f45d2642a9eb2069146e8478196d3ffbceb7e.tar.gz
bash-object-system-ae5f45d2642a9eb2069146e8478196d3ffbceb7e.tar.bz2
bash-object-system-ae5f45d2642a9eb2069146e8478196d3ffbceb7e.zip
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
-rw-r--r--bos-dispatch.sh2
1 files changed, 1 insertions, 1 deletions
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" "$@"