2014-06-02 08:57:14 -04:00
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source '/foo/'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation '//' # match all
|
|
|
|
mutation '/a\A/' # match nothing
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source '/#{foo.bar}n/'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation '//' # match all
|
|
|
|
mutation '/#{foo}n/'
|
|
|
|
mutation '/a\A/' # match nothing
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation '/#{self.bar}n/'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation '/#{nil}n/'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation '/#{self}n/'
|
2014-06-02 08:57:14 -04:00
|
|
|
end
|