diff options
author | dakkar <dakkar@thenautilus.net> | 2023-07-28 12:31:38 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2023-07-28 12:31:38 +0100 |
commit | ae5f45d2642a9eb2069146e8478196d3ffbceb7e (patch) | |
tree | 9b1509591fb530331f18ff788f259c664cf44be2 /bos-dispatch.sh | |
parent | probably fix exposing attributes (diff) | |
download | bash-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
Diffstat (limited to 'bos-dispatch.sh')
-rw-r--r-- | bos-dispatch.sh | 2 |
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" "$@" |