Use child nameing in argument mutator
This commit is contained in:
parent
586a4d3e1b
commit
e98a55ae87
1 changed files with 2 additions and 11 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue