Provide `self` (the instance) to #any_instance blocks
Created by: zettabyte
Feature Request
For both stubs and method expectations on #any_instance
, where the user provides a block implementation, it would be great if there were a way to get at the actual instance on which the method actually gets called.
One possible way would be to include the instance as an extra parameter to the block, at the end of the list, if the arity
of the block indicates the user's block expects to receive this extra instance parameter (and leave it off otherwise).