From: Dave Rolsky Date: Thu, 17 Jun 2010 19:24:37 +0000 (-0500) Subject: Show code for requiring as_string method in example of inlining a role X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ba9682918eeec2fae54d1ad72cf2b4e0f85fc9e;p=gitmo%2Fmoose-presentations.git Show code for requiring as_string method in example of inlining a role --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 10766e6..5b91f02 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -1348,7 +1348,9 @@ use Moose; with 'Printable'; -has has_been_printed => ( is => 'rw' ); +die '...' unless __PACKAGE__->can('as_string'); + +has has_been_printed => ( is => 'rw' ); sub print { my $self = shift;