initial revision
[Method-Signatures-Simple.git] / README
blob083dc9cdc8390f0836aebd4ed2e1e2f8c669f0fa
1 Method-Signatures-Simple
3 RATIONALE
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.
10 SYNOPSIS
12     use Method::Signatures::Simple;
14     method foo { $self->bar }
16     # with signature
17     method foo($bar, %opts) {
18         $self->bar(reverse $bar) if $opts{rev};
19     }
21     # attributes
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
31 perldoc command.
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
43     CPAN Ratings
44         http://cpanratings.perl.org/d/Method-Signatures-Simple
46     Search CPAN
47         http://search.cpan.org/dist/Method-Signatures-Simple
50 COPYRIGHT AND LICENCE
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.