Remove all trailing whitespace
[gitmo/Moose.git] / benchmarks / cmop / lib / MOP / Point.pm
CommitLineData
38bf2a25 1
2package MOP::Point;
3
4use strict;
5use warnings;
6use metaclass;
7
8__PACKAGE__->meta->add_attribute('x' => (accessor => 'x', default => 10));
9__PACKAGE__->meta->add_attribute('y' => (accessor => 'y'));
10
11sub new {
12 my $class = shift;
13 $class->meta->new_object(@_);
14}
15
16sub clear {
17 my $self = shift;
18 $self->x(0);
064a13a3 19 $self->y(0);
38bf2a25 20}
21
221;
23
064a13a3 24__END__