X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=moose-class%2Fslides%2Findex.html;h=e3814b78837583319bfb14b980b4d1a9edde0993;hb=3258951f22a6aed1774ec682fe4ad1365e154405;hp=056e11502c3d8be6dc75c993af7233d04db53201;hpb=e284f2b4abe2bfdb65884c34b2724401db14371f;p=gitmo%2Fmoose-presentations.git diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 056e115..e3814b7 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -2962,10 +2962,21 @@ has transaction_history => (
+

Specio

+ + +
+ +

Recommendation

@@ -3358,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

@@ -3674,12 +3612,13 @@ with HasCollection => { type => 'Int' };

@@ -3688,7 +3627,7 @@ with HasCollection => { type => 'Int' };