2014-06-02 08:57:14 -04:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'super'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'super()'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
|
|
|
# this is zsuper a totally differend node thant super()
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'super'
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'super(foo, bar)'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'super'
|
|
|
|
mutation 'super()'
|
|
|
|
mutation 'super(foo)'
|
|
|
|
mutation 'super(bar)'
|
|
|
|
mutation 'super(foo, nil)'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'super(foo, self)'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'super(nil, bar)'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'super(self, bar)'
|
2014-06-02 08:57:14 -04:00
|
|
|
end
|