diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-11-05 11:12:53 +0100 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-11-05 11:12:53 +0100 |
| commit | 927c3e4cf1946b70950ea5b8186abfa19ac7b078 (patch) | |
| tree | 45927806e71e08a08df24bd938d6e13d7b83f7b2 /lib/Graph/GEXF/Role | |
| parent | reflect API change on tests (diff) | |
| download | graph-gexf-927c3e4cf1946b70950ea5b8186abfa19ac7b078.tar.gz | |
add position role
Diffstat (limited to '')
| -rw-r--r-- | lib/Graph/GEXF/Role/Position.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Graph/GEXF/Role/Position.pm b/lib/Graph/GEXF/Role/Position.pm new file mode 100644 index 0000000..2d7bbc4 --- /dev/null +++ b/lib/Graph/GEXF/Role/Position.pm @@ -0,0 +1,14 @@ +package Graph::GEXF::Role::Position; + +use Moose::Role; + +for (qw/x y z/) { + has $_ => ( + is => 'rw', + isa => 'Num', + lazy => 1, + default => '0.0', + ); +} + +1; |
