Module: MethodDisabling
- Defined in:
- lib/method_disabling.rb
Overview
MethodDisabling allows a programmer to programatically disable existing methods, causing them to raise a NoMethodError, and restore the methods to their original behavior.
The most obvious use case for disabling messages is when you want to ensure that your unit tests don’t do anything unexpected, such as connecting to external resources.
Defined Under Namespace
Modules: ClassMethods Classes: DisabledMethod