Stubs are functions that can be injected on top of other functions that otherwise would be called.
It is not always possible to override a method, in particular it is difficult (and can be impossible) if __index is a function.
Stubs are functions that can be injected on top of other functions that otherwise would be called.
It is not always possible to override a method, in particular it is difficult (and can be impossible) if __index is a function.