| 1 | package MoobX::Attributes; | ||
| 2 | 10 | our $AUTHORITY = 'cpan:YANICK'; | |
| 3 | #ABSTRACT: Attributes to annotate variables as MoobX observables | ||
| 4 | 10 | $MoobX::Attributes::VERSION = '0.1.2'; | |
| 5 | |||
| 6 | |||
| 7 | 10 | ▶ | use 5.20.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 10 | ▶ | use MoobX '!:attributes'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 10 | ▶ | use Attribute::Handlers; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 10 | ▶ | no warnings 'redefine'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 4 | ▶ | sub Observable :ATTR(SCALAR) { |
|
Subroutine
Observable: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | 4 | my ($package, $symbol, $referent, $attr, $data) = @_; | |
| 17 | |||
| 18 | 4 | MoobX::observable_ref($referent); | |
| 19 | 10 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 1 | ▶ | sub Observable :ATTR(ARRAY) { |
|
Subroutine
Observable: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | 1 | my ($package, $symbol, $referent, $attr, $data) = @_; | |
| 23 | |||
| 24 | 1 | MoobX::observable_ref($referent); | |
| 25 | 10 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 1 | ▶ | sub Observable :ATTR(HASH) { |
|
Subroutine
Observable: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 28 | 1 | my ($package, $symbol, $referent, $attr, $data) = @_; | |
| 29 | |||
| 30 | 1 | MoobX::observable_ref($referent); | |
| 31 | 10 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | |||
| 33 | 10 | 1; | |
| 34 | |||
| 35 | __END__ | ||