Hides a defined constant for the duration of an example.
@api private
# File lib/rspec/mocks/mutate_const.rb, line 224 def mutate @context = recursive_const_get(@context_parts.join('::')) @original_value = get_const_defined_on(@context, @const_name) @context.__send__(:remove_const, @const_name) end
Generated with the Darkfish Rdoc Generator 2.