From: Dave Rolsky Date: Fri, 7 Jun 2013 03:50:05 +0000 (-0500) Subject: Remove bits on traits & metaclasses in adv attributes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3258951f22a6aed1774ec682fe4ad1365e154405;p=gitmo%2Fmoose-presentations.git Remove bits on traits & metaclasses in adv attributes This isn't really that important, as new moose users will only ever consume these things and can just cargo cult initially. --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 2ad8bbb..e3814b7 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -3373,82 +3373,6 @@ $person->account->deposit(100);
-

Traits and Metaclasses

- - -
- -
-

Traits and Metaclasses

- - -
- -
-

Traits and Metaclasses

- - -
- -
-

Simple Trait Example

- -
package Person;
-use Moose;
-use MooseX::LabeledAttributes;
-
-has ssn => (
-    traits => [ 'Labeled' ],
-    is     => 'ro',
-    isa    => 'Str',
-    label  => 'Social Security Number',
-);
-print Person->meta
-            ->get_attribute('ssn')->label;
-
- -
-

Simple Metaclass Example

- -
package Person;
-use Moose;
-use MooseX::LabeledAttributes;
-
-has ssn => (
-    metaclass =>
-        'MooseX::Meta::Attribute::Labeled',
-    is        => 'ro',
-    isa       => 'Str',
-    label     => 'Social Security Number',
-);
-print Person->meta
-            ->get_attribute('ssn')->label;
-
- -
-

Traits vs Metaclass

- - -
- -

Advanced Attributes Summary