From 7d155c5a542bb50f39ca91e10bd3462ff0968c56 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 2 Jul 2009 20:00:11 -0500 Subject: add a bit more to the synopsis --- lib/MooseX/ABC.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MooseX/ABC.pm b/lib/MooseX/ABC.pm index 3ced614..c8eec75 100644 --- a/lib/MooseX/ABC.pm +++ b/lib/MooseX/ABC.pm @@ -26,6 +26,10 @@ MooseX::ABC - abstract base classes for Moose my $shape = Shape->new; # dies my $circle = Circle->new; # succeeds + package Square; + use Moose; + extends 'Shape'; # dies, since draw is unimplemented + =head1 DESCRIPTION This module adds basic abstract base class functionality to Moose. Doing C turns the using class into an abstract class - it cannot be instantiated. It also allows you to mark certain methods in the class as L, meaning that if a class inherits from this class without implementing that method, it will die at compile time. -- cgit v1.2.3