README
Method-Signatures-Simple
RATIONALE
This module provides a basic C<method> keyword with simple signatures. It's intentionally simple,
and is supposed to be a stepping stone for its bigger brothers L<MooseX::Method::Signatures> and L<Method::Signatures>.
It only has a small benefit over regular subs, so if you want more features, look at those modules.
But if you're looking for a small amount of syntactic sugar, this might just be enough.
SYNOPSIS
use Method::Signatures::Simple;
method foo { $self->bar }
# with signature
method foo($bar, %opts) {
$self->bar(reverse $bar) if $opts{rev};
}
# attributes
method foo : lvalue { $self->{foo} }
# change invocant name
method foo ($class: $bar) { $class->bar($bar) }
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Method::Signatures::Simple
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Method-Signatures-Simple
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Method-Signatures-Simple
CPAN Ratings
http://cpanratings.perl.org/d/Method-Signatures-Simple
Search CPAN
http://search.cpan.org/dist/Method-Signatures-Simple
COPYRIGHT AND LICENCE
Copyright (C) 2008 Rhesa Rozendaal
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.