blib/lib/CairoX/Sweet/Core/Point.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use 5.14.0;
2 use strict;
3 use warnings;
4 use CairoX::Sweet::Standard;
5  
6 our $VERSION = '0.0108'; # VERSION
7 # PODNAME: CairoX::Sweet::Core::Point
8  
9 class CairoX::Sweet::Core::Point using Moose {
10  
11 has x => (
12 is => 'rw',
13 isa => Num,
14 required => 1,
15 );
16 has y => (
17 is => 'rw',
18 isa => Num,
19 required => 1,
20 );
21  
22 method out {
23 return ($self->x, $self->y);
24 }
25 method move(:$x = 0, :$y = 0) {
26 $self->x($self->x + $x);
27 $self->y($self->y + $y);
28 }
29 }
30  
31 1;
32  
33 __END__
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 CairoX::Sweet::Core::Point
42  
43 =head1 VERSION
44  
45 Version 0.0108, released 2015-03-21.
46  
47 =head1 SOURCE
48  
49 L<https://github.com/Csson/p5-CairoX-Sweet>
50  
51 =head1 HOMEPAGE
52  
53 L<https://metacpan.org/release/CairoX-Sweet>
54  
55 =head1 AUTHOR
56  
57 Erik Carlsson <info@code301.com>
58  
59 =head1 COPYRIGHT AND LICENSE
60  
61 This software is copyright (c) 2015 by Erik Carlsson <info@code301.com>.
62  
63 This is free software; you can redistribute it and/or modify it under
64 the same terms as the Perl 5 programming language system itself.
65  
66 =cut