| 1 | package PlantUML::ClassDiagram::Class::Variable; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | ▶ | use parent qw/PlantUML::ClassDiagram::Class::Base/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 4 | __PACKAGE__->follow_best_practice; | |
| 9 | |||
| 10 | 4 | my @self_valiables = qw/ | |
| 11 | name | ||
| 12 | attribute | ||
| 13 | /; | ||
| 14 | 4 | __PACKAGE__->mk_ro_accessors(@self_valiables); | |
| 15 | |||
| 16 | 2 | ▶ | sub build { |
|
Subroutine
build: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 2 | my ($class, $string) = @_; | |
| 18 | |||
| 19 | 2 | my ($name) = $string =~ /(\w+)/; | |
| 20 | 2 | my ($attribute) = $string =~ /\{(\w+)\}/; | |
| 21 | |||
| 22 | 2 | return $class->new($name, $attribute); | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub is_variable { 1 } |
|
Subroutine
is_variable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | |||
| 27 | 4 | 1; | |