| 1 | 1 | ▶ | use strictures 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | # ABSTRACT: Version 2 of bundled syntax enhancements | ||
| 4 | |||
| 5 | package Syntax::Feature::Simple::V2; | ||
| 6 | { | ||
| 7 | 1 | $Syntax::Feature::Simple::V2::VERSION = '0.002'; | |
| 8 | } | ||
| 9 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | $Syntax::Feature::Simple::V2::AUTHORITY = 'cpan:PHAYLON'; | |
| 11 | } | ||
| 12 | |||
| 13 | 1 | ▶ | use parent 'Syntax::Feature::Simple::V1'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use syntax qw( method ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | ▶ | method _available_extensions { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_available_extensions: called CC=1 SCAR=0.0
| |||
| 17 | 1 | return qw( | |
| 18 | function_keyword | ||
| 19 | moose_param_role_method_sugar | ||
| 20 | method_keyword | ||
| 21 | modifier_sugar | ||
| 22 | moose_param_role_body_sugar | ||
| 23 | ); | ||
| 24 | 1 | } | |
| 25 | |||
| 26 | 1 | ▶ | method _can_setup_moose_param_role_body_sugar_ext ($class: $target) { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_can_setup_moose_param_role_body_sugar_ext: called CC=1 SCAR=0.0
| |||
| 27 | 1 | $class->_check_is_moose_param_role($target) | |
| 28 | 1 | } | |
| 29 | |||
| 30 | 1 | ▶ | method _can_setup_method_keyword_ext ($class: $target) { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_can_setup_method_keyword_ext: called CC=1 SCAR=0.0
| |||
| 31 | 1 | not $class->_check_is_moose_param_role($target) | |
| 32 | 1 | } | |
| 33 | |||
| 34 | 1 | 1; | |
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | =pod | ||
| 39 | |||
| 40 | =head1 NAME | ||
| 41 | |||
| 42 | Syntax::Feature::Simple::V2 - Version 2 of bundled syntax enhancements | ||
| 43 | |||
| 44 | =head1 VERSION | ||
| 45 | |||
| 46 | version 0.002 | ||
| 47 | |||
| 48 | =head1 SYNOPSIS | ||
| 49 | |||
| 50 | use syntax qw( simple/v2 ); | ||
| 51 | |||
| 52 | =head1 DESCRIPTION | ||
| 53 | |||
| 54 | This is the second version of the syntax dispatcher. It will setup a function | ||
| 55 | and a method keyword in all cases, and a set of method modifiers if any kind | ||
| 56 | of L<Moose> metaclass was detected. For roles parameterized with | ||
| 57 | L<MooseX::Role::Parameterized> it will also setup a C<role> keyword for the | ||
| 58 | body. | ||
| 59 | |||
| 60 | =head1 SEE ALSO | ||
| 61 | |||
| 62 | =over | ||
| 63 | |||
| 64 | =item L<Syntax::Feature::Simple> | ||
| 65 | |||
| 66 | Main feature documentation. | ||
| 67 | |||
| 68 | =back | ||
| 69 | |||
| 70 | =head1 BUGS | ||
| 71 | |||
| 72 | Please report any bugs or feature requests to bug-syntax-feature-simple@rt.cpan.org or through the web interface at: | ||
| 73 | http://rt.cpan.org/Public/Dist/Display.html?Name=Syntax-Feature-Simple | ||
| 74 | |||
| 75 | =head1 AUTHOR | ||
| 76 | |||
| 77 | Robert 'phaylon' Sedlacek <rs@474.at> | ||
| 78 | |||
| 79 | =head1 COPYRIGHT AND LICENSE | ||
| 80 | |||
| 81 | This software is copyright (c) 2011 by Robert 'phaylon' Sedlacek. | ||
| 82 | |||
| 83 | This is free software; you can redistribute it and/or modify it under | ||
| 84 | the same terms as the Perl 5 programming language system itself. | ||
| 85 | |||
| 86 | =cut | ||
| 87 | |||
| 88 | |||
| 89 | __END__ | ||