Hides a defined constant for the duration of an example.
@private
# File lib/rspec/mocks/mutate_const.rb, line 229 def mutate return unless @defined = recursive_const_defined?(full_constant_name) @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.