| 1 | package Chart::Clicker::Positioned; | ||
| 2 | 11 | $Chart::Clicker::Positioned::VERSION = '2.90'; | |
| 3 | 11 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # ABSTRACT: Role for components that care about position. | ||
| 6 | |||
| 7 | 11 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 11 | enum 'Chart::Clicker::Position' => [qw(left right top bottom)]; | |
| 10 | |||
| 11 | |||
| 12 | 11 | has 'position' => ( | |
| 13 | is => 'rw', | ||
| 14 | isa => 'Chart::Clicker::Position' | ||
| 15 | ); | ||
| 16 | |||
| 17 | |||
| 18 | 0 | ▶ | sub is_left { |
|
Subroutine
is_left: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | my ($self) = @_; | |
| 20 | |||
| 21 | 0 | return $self->position eq 'left'; | |
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | 0 | ▶ | sub is_right { |
|
Subroutine
is_right: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | 0 | my ($self) = @_; | |
| 27 | |||
| 28 | 0 | return $self->position eq 'right'; | |
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | 0 | ▶ | sub is_top { |
|
Subroutine
is_top: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | 0 | my ($self) = @_; | |
| 34 | |||
| 35 | 0 | return $self->position eq 'top'; | |
| 36 | } | ||
| 37 | |||
| 38 | |||
| 39 | 0 | ▶ | sub is_bottom { |
|
Subroutine
is_bottom: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 40 | 0 | my ($self) = @_; | |
| 41 | |||
| 42 | 0 | return $self->position eq 'bottom'; | |
| 43 | } | ||
| 44 | |||
| 45 | 11 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 46 | 11 | 1; | |
| 47 | |||
| 48 | __END__ | ||