diff options
Diffstat (limited to 'lib/Graph/GEXF/Role/Viz')
| -rw-r--r-- | lib/Graph/GEXF/Role/Viz/Shape.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Graph/GEXF/Role/Viz/Shape.pm b/lib/Graph/GEXF/Role/Viz/Shape.pm index f8e57de..1f0ba67 100644 --- a/lib/Graph/GEXF/Role/Viz/Shape.pm +++ b/lib/Graph/GEXF/Role/Viz/Shape.pm @@ -16,7 +16,7 @@ role { my ( $type, $default ); - $type = lcfirst( $p->for ) . 'Shape'; + $type = ucfirst( $p->for ) . 'Shape'; if ( $p->for eq 'node' ) { $default = 'disc'; @@ -26,8 +26,9 @@ role { } has shape => ( - is => 'rw', - isa => $type, + is => 'rw', + isa => $type, + default => $default, ); }; |
