diff options
Diffstat (limited to 'bos-meta.sh')
-rw-r--r-- | bos-meta.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bos-meta.sh b/bos-meta.sh new file mode 100644 index 0000000..6932095 --- /dev/null +++ b/bos-meta.sh @@ -0,0 +1,17 @@ +#!bash + +declare -A bos_meta_metaclass_instance_for_class + +function bos-meta/set-metaclass-instance-for() { + bos_meta_metaclass_instance_for_class["$1"]="$2" + + return 0 +} + +function bos-meta/metaclass-instance-for-class-into() { + local -n bos_meta_metaclass_instance_result="$1" + + bos_meta_metaclass_instance_result="${bos_meta_metaclass_instance_for_class[$2]}" + + return 0 +} |