Add limitation example for defs

This commit is contained in:
John Backus 2015-10-31 21:46:41 -07:00
parent 8212585a53
commit 499a71f728

View file

@ -101,6 +101,18 @@ Mutant cannot emit mutations for...
end
```
* singleton methods not defined on a constant or `self`
```ruby
class Foo
def self.bar; end # ok
def Foo.baz; end # ok
myself = self
def myself.qux; end # cannot mutate
end
```
Mutation-Operators:
-------------------