add remove callback to callback_registry

15 views
Skip to first unread message

mohamed m

unread,
Mar 5, 2019, 3:01:41 PM3/5/19
to webmock-users
Hello guys, 

This is just a suggestion of something that I needed to do with webmock.
As I can see here https://github.com/bblimke/webmock/blob/master/lib/webmock/callback_registry.rb, there is an add_callback to add a new callback and reset method to delete everything. Why is there no remove_callback method to remove a specific callback. WDYT ?

Regards,
Mohamed M

Bartosz Blimke

unread,
Mar 5, 2019, 3:07:36 PM3/5/19
to webmoc...@googlegroups.com
Hi Mohamed,

I guess there was no need for it in the past. CallbackRegistry is not really part of WebMock API.
It might change in the future, though it's unlikely as it hasn't changed for a long time.

Bartosz

--

---
You received this message because you are subscribed to the Google Groups "webmock-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webmock-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages