1 Method-Signatures-Simple
5 This module provides a basic C<method> keyword with simple signatures. It's intentionally simple,
6 and is supposed to be a stepping stone for its bigger brothers L<MooseX::Method::Signatures> and L<Method::Signatures>.
7 It only has a small benefit over regular subs, so if you want more features, look at those modules.
8 But if you're looking for a small amount of syntactic sugar, this might just be enough.
12 use Method::Signatures::Simple;
14 method foo { $self->bar }
17 method foo($bar, %opts) {
18 $self->bar(reverse $bar) if $opts{rev};
22 method foo : lvalue { $self->{foo} }
24 # change invocant name
25 method foo ($class: $bar) { $class->bar($bar) }
28 SUPPORT AND DOCUMENTATION
30 After installing, you can find documentation for this module with the
33 perldoc Method::Signatures::Simple
35 You can also look for information at:
37 RT, CPAN's request tracker
38 http://rt.cpan.org/NoAuth/Bugs.html?Dist=Method-Signatures-Simple
40 AnnoCPAN, Annotated CPAN documentation
41 http://annocpan.org/dist/Method-Signatures-Simple
44 http://cpanratings.perl.org/d/Method-Signatures-Simple
47 http://search.cpan.org/dist/Method-Signatures-Simple
52 Copyright (C) 2008 Rhesa Rozendaal
54 This program is free software; you can redistribute it and/or modify it
55 under the same terms as Perl itself.