Filewatcher File Search File Search
Catalog
Content Search
» » » » »

methods-0.11.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:Perl-CPAN
Filename:methods-0.11.tar.gz

/methods-0.11/README

NAME
    methods - Provide method syntax and sweep namespaces

SYNOPSIS
        use methods;

        # 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) }

        # "1;" no longer requi
more»

/methods-0.11/README.mkdn

# NAME

methods - Provide method syntax and sweep namespaces

# SYNOPSIS

    use methods;

    # 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) }

    # "1;" no longer required here

With [invoker](http://search
more»

/methods-0.11/Changes

[Changes for 0.11 - Sun Oct 21 22:02:16 CST 2012]

* Rebuild with up-to-date Module::Install 1.06; no functional changes.

[Changes for 0.10 - Thu Apr 26 21:36:24 CST 2012]

* Switch to namespace::sweep instead of namespace::autoclean
  to retain compatibility with "use overload". (@clkao)

[Changes for 0.03 - Tue Jul  5 06:49:16 CST 2011]

* Add "use methods-invoker" optional flags to load invoke
more»

Browse inside methods-0.11.tar.gz

         [DIR]methods-0.11/ (10)

Download methods-0.11.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com