2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :restarg do
|
2016-03-06 16:19:32 -05:00
|
|
|
source 'def foo(*bar); end'
|
2014-06-02 08:57:14 -04:00
|
|
|
|
2016-03-06 16:19:32 -05:00
|
|
|
mutation 'def foo; end'
|
|
|
|
mutation 'def foo(*bar); bar = []; end'
|
|
|
|
mutation 'def foo(*bar); raise; end'
|
|
|
|
mutation 'remove_method(:foo)'
|
2014-06-02 08:57:14 -04:00
|
|
|
end
|