-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document fvalidate #132
Document fvalidate #132
Conversation
All parameters are optional, including the *fget* "getter", *fvalidate* | ||
"validator" and *fset* "setter" methods. If no parameters are specified, then | ||
the trait looks for and uses methods on the same class as the attribute that | ||
the trait is assigned to, with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor nit: short line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
"validator" and *fset* "setter" methods. If no parameters are specified, then | ||
the trait looks for and uses methods on the same class as the attribute that | ||
the trait is assigned to, with names of the form _get_\ *name*\ () _validate_\ | ||
() *name*\ and _set_\ *name*\ (), where *name* is the name of the trait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be _validate_\ *name\ ()
instead of _validate_\ () *name*\
? It would also be good to have a comma between _get_...
and _validate_...
. Sorry for not noticing this the first time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
it this ready to merge? |
LGTM. |
This PR adds some basic documentation for the Property
validator
methods