2013-01-04 16:16:03 -05:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
|
|
|
|
2013-06-04 04:25:13 -04:00
|
|
|
# Mutator for when nodes
|
2013-01-04 16:16:03 -05:00
|
|
|
class When < self
|
|
|
|
|
2013-06-04 04:25:13 -04:00
|
|
|
handle(:when)
|
2013-01-04 16:16:03 -05:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
emit_attribute_mutations(:body)
|
|
|
|
end
|
|
|
|
|
2013-06-04 04:25:13 -04:00
|
|
|
end # When
|
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|