buncha-stuff
[gitmo/Class-MOP.git] / bench / lib / MOP / Installed / Point.pm
CommitLineData
e0a82090 1
c0cbf4d9 2use lib reverse @INC;
3
4package MOP::Installed::Point;
e0a82090 5
6use strict;
7use warnings;
8use metaclass;
9
c0cbf4d9 10__PACKAGE__->meta->add_attribute('x' => (accessor => 'x', default => 10));
e0a82090 11__PACKAGE__->meta->add_attribute('y' => (accessor => 'y'));
12
13sub new {
14 my $class = shift;
15 $class->meta->new_object(@_);
16}
17
18sub clear {
19 my $self = shift;
20 $self->x(0);
21 $self->y(0);
22}
23
241;
25
26__END__