class RSpec::Mocks::ConstantMutator::BaseMutator

@api private
Contains common functionality used by all of the constant mutators.

def initialize(full_constant_name, mutated_value, transfer_nested_constants)

def initialize(full_constant_name, mutated_value, transfer_nested_constants)
  @full_constant_name        = normalize_const_name(full_constant_name)
  @mutated_value             = mutated_value
  @transfer_nested_constants = transfer_nested_constants
  @context_parts             = @full_constant_name.split('::')
  @const_name                = @context_parts.pop
end

def to_constant

def to_constant
  const = Constant.new(full_constant_name)
  const.original_value = original_value
  const
end