KERNEL_METHOD_METHOD | = | ::Kernel.instance_method(:method) | @api private | |
ConstantStubber | = | ConstantMutator | Keeps backwards compatibility since we had released an rspec-mocks that only supported stubbing. Later, we released the hide_const feature and decided that the term "mutator" was a better term to wrap up the concept of both stubbing and hiding. |
space | [RW] |
@api private Used internally to get a method handle for a particular object and method name.
Includes handling for a few special cases:
- Objects that redefine #method (e.g. an HTTPRequest struct) - BasicObject subclasses that mixin a Kernel dup (e.g. SimpleDelegator)
@api private Used internally by RSpec to display custom deprecation warnings. This is also defined in rspec-core, but we can‘t assume it‘s loaded since rspec-expectations should be usable w/o rspec-core.