diff options
Diffstat (limited to 'benchmarks/cmop/lib/MOP/Point3D.pm')
-rw-r--r-- | benchmarks/cmop/lib/MOP/Point3D.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/benchmarks/cmop/lib/MOP/Point3D.pm b/benchmarks/cmop/lib/MOP/Point3D.pm new file mode 100644 index 0000000..0287499 --- /dev/null +++ b/benchmarks/cmop/lib/MOP/Point3D.pm @@ -0,0 +1,20 @@ + +package MOP::Point3D; + +use strict; +use warnings; +use metaclass; + +use base 'MOP::Point'; + +__PACKAGE__->meta->add_attribute('z' => (accessor => 'z')); + +sub clear { + my $self = shift; + $self->SUPER::clear(); + $self->z(0); +} + +1; + +__END__ |