descriptionBasic method declarations with signatures, without source filters
homepage URLhttp://search.cpan.org/dist/Method-Signatures-Simple/
ownerrhesa@cpan.org
last changeSat, 25 Oct 2008 19:45:55 +0000 (25 21:45 +0200)
content tags
add:
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.
shortlog
2008-10-25 Rhesa Rozendaalremoved redundant stuff in xt/, which is now part of... master
2008-10-25 Rhesa Rozendaalbumped prereq of Devel::Declare
2008-10-23 Rhesa Rozendaalinitial revision
heads
15 years ago master