Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
magniff committed Sep 25, 2018
1 parent f82d6bd commit 4ad30cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ instance.attribute = instance.attribute
But this looks weird indeed.


### How to create custom validator
### How to create a custom validator
Even though you can build rather reach validators using only stuff described above, you are welcome to create your own one. The base class of each validator is `watch.PredicateController`, that has method `predicate(value)`, that should return `True` if value fits to object and `False` otherwise. The following example demonstrates how to build validator, that checks whether this value been set earlier:
```python
class Unique(watch.PredicateController):
Expand Down

0 comments on commit 4ad30cf

Please sign in to comment.