No room to show required method in inlined role example
[gitmo/moose-presentations.git] / moose-class / slides / index.html
index a88be31..1a1d44f 100644 (file)
@@ -1348,9 +1348,7 @@ use Moose;
 
 <span class="delete">with 'Printable';</span>
 
-<span class="highlight">die '...' unless __PACKAGE__-&gt;can('as_string');
-
-has has_been_printed =&gt; ( is =&gt; 'rw'  );
+<span class="highlight">has has_been_printed =&gt; ( is =&gt; 'rw'  );
 
 sub print {
     my $self = shift;
@@ -1370,7 +1368,7 @@ sub print {
 
 # or ...
 
-Person-&gt;meta-&gt;does('Printable')</code></pre>
+Person-&gt;meta-&gt;does_role('Printable')</code></pre>
 
 </div>