]> git.corax.cc Git - toolbox/commit
toolbox.sh: Don't require all interface methods to be implemented
authorMatthias Kruk <m@m10k.eu>
Mon, 9 Jan 2023 05:18:39 +0000 (14:18 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 9 Jan 2023 05:18:39 +0000 (14:18 +0900)
commit5643d1c4ff222632947462458ea7e04df151c4f3
tree1dbd2a49aa497e1308fb28af59479e34d856d3b5
parent55eeb4218a9bf2cab4d947d05b9314e18273d286
toolbox.sh: Don't require all interface methods to be implemented

The interface/implements mechanism requires a module to implement
all methods of the interface that it implements, making modules
that extend other modules impossible.

This commit modifies the `implements()' function to remove the
restriction that a module must implement all interface methods.
toolbox.sh