free_mutant/lib/mutant/ast/meta/restarg.rb
John Backus 1ddcac2504 Add restarg arity mutation
- Mutates `def foo(*args); end` into `def foo(*args); args = []; end`
- Closes #181
2015-09-08 08:03:48 -07:00

15 lines
268 B
Ruby

module Mutant
module AST
# Node meta information mixin
module Meta
# Metadata for restarg nodes
class Restarg
include NamedChildren, Concord.new(:node)
children :name
end # Restarg
end # Meta
end # AST
end # Mutant