4 ms·
Missing the point entirely. I don't want your module. I want/like your design and I want to provide my own implementation.
by swannodette 16y ago
Missing the point entirely. I don't want your module. I want/like your design and I want to provide my own implementation.
- clyfe 16y agoOverride the functions in my module with your own
- jules 16y agoDefine exception throwing "not implemented" methods in the module.
- russellperry 16y agoI get what you're saying, but Ruby already allows you to do this. If you like an API/design, then go ahead and reimplement it however you like. There are no class-level contracts anywhere in Ruby that would prevent this, and therefore interfaces provide no additional level of abstraction that Ruby doesn't already have.