Use child nameing in argument mutator

This commit is contained in:
Markus Schirp 2013-06-21 15:04:44 +02:00
parent 586a4d3e1b
commit e98a55ae87

View file

@ -7,6 +7,8 @@ module Mutant
handle(:arg) handle(:arg)
UNDERSCORE = '_'.freeze UNDERSCORE = '_'.freeze
children :name
NAME_INDEX = 0 NAME_INDEX = 0
private private
@ -34,17 +36,6 @@ module Mutant
end end
end end
# Return name
#
# @return [Symbol]
#
# @api private
#
def name
children[NAME_INDEX]
end
protected :name
# Test if argument mutation is skipped # Test if argument mutation is skipped
# #
# @return [true] # @return [true]