foo
[gitmo/Class-MOP.git] / bench / lib / MOP / Installed / Point3D.pm
diff --git a/bench/lib/MOP/Installed/Point3D.pm b/bench/lib/MOP/Installed/Point3D.pm
new file mode 100644 (file)
index 0000000..2bd544d
--- /dev/null
@@ -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__
\ No newline at end of file