Syccess::Validator::Call - A validator to check via call to a method
version 0.104
Syccess->new( fields => [ foo => [ call => [ $thing, 'whitelisted' ] ], baz => [ call => { not => [ $thing, 'blacklisted' ] } ], bar => [ call => { not => [ $thing, 'blacklisted' ], message => 'You have 5 seconds to comply.' } ], ], );
This validator allows checking against a method call on an object. If used with the not parameter, it will see success if the called method gives back a false value, else it will succeed on a true value.
This contains the error message or the format for the error message generation. See "validator_message" in Syccess::Error.
IRC
Join irc.perl.org and msg Getty
Repository
http://github.com/Getty/p5-syccess Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-syccess/issues
Torsten Raudssus <torsten@raudss.us>
This software is copyright (c) 2017 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Syccess, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Syccess
CPAN shell
perl -MCPAN -e shell install Syccess
For more information on module installation, please visit the detailed CPAN module installation guide.