foo
[gitmo/Class-MOP.git] / bench / lib / MOP / Local / Point.pm
CommitLineData
e0a82090 1
2package MOP::Point;
3
4use strict;
5use warnings;
6use metaclass;
7
8__PACKAGE__->meta->add_attribute('x' => (accessor => 'x'));
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);
19 $self->y(0);
20}
21
221;
23
24__END__