Add limitation example for defs
This commit is contained in:
parent
8212585a53
commit
499a71f728
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -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:
|
||||
-------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue