From: Dave Rolsky Date: Sat, 17 Jul 2010 03:44:10 +0000 (-0500) Subject: Remove slides on aliasing & excluding role methods. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=726473c694521566a4ccd7289a22d9510dc32e56;p=gitmo%2Fmoose-presentations.git Remove slides on aliasing & excluding role methods. --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index d2c2ed4..25a7f6d 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -1427,64 +1427,12 @@ use Moose;
-

Method Aliasing

- -
package FragileDancer;
-use Moose;
-
-with 'IsFragile' =>
-         { -alias =>
-               { break => 'break_bone' } },
-     'CanBreakdance' =>
-         { -alias =>
-               { break => 'break_it_down' } };
- - -
- -
-

Method Exclusion

- -
package FragileDancer;
-use Moose;
-
-with 'IsFragile' =>
-         { -alias =>
-               { break => 'break_bone' },
-           -excludes => 'break' },
-     'CanBreakdance' =>
-         { -alias =>
-               { break => 'break_it_down' },
-           -excludes => 'break' };
-
- -
-

And then ...

- -
package FragileDancer;
-use Moose;
-
-sub break {
-    my $self = shift;
-
-    $self->break_it_down;
-    if ( rand(1) < 0.5 ) {
-        $self->break_bone;
-    }
-}
-
- -
-

Still Full of Fail

+

Conflicts Are a Smell