X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FAttribute%2FNative.pm;h=25dcb78d617b5059614b8690df65e5befb502a4b;hb=c53c3ec7350a5fc4699ca6053221bc02e60d02d5;hp=8fd711db8b3ea436f11d67d2695f22038b6716c5;hpb=a6f9a6cd26513ba2457f5b54bab12bee84bca5a1;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Attribute/Native.pm b/lib/Moose/Meta/Attribute/Native.pm index 8fd711d..25dcb78 100644 --- a/lib/Moose/Meta/Attribute/Native.pm +++ b/lib/Moose/Meta/Attribute/Native.pm @@ -1,6 +1,6 @@ package Moose::Meta::Attribute::Native; -our $VERSION = '0.93_02'; +our $VERSION = '1.05'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -116,6 +116,7 @@ Common numerical operations. div => 'div', mod => 'mod', abs => 'abs', + # ... } ); @@ -131,6 +132,7 @@ Common methods for string operations. handles => { add_text => 'append', replace_text => 'replace', + # ... } ); @@ -147,6 +149,7 @@ Methods for incrementing and decrementing a counter attribute. inc_counter => 'inc', dec_counter => 'dec', reset_counter => 'reset', + # ... } ); @@ -164,6 +167,7 @@ Common methods for boolean values. darken => 'unset', flip_switch => 'toggle', is_dark => 'not', + # ... } ); @@ -180,6 +184,7 @@ Common methods for hash references. set_option => 'set', get_option => 'get', has_option => 'exists', + # ... } ); @@ -188,14 +193,15 @@ Common methods for hash references. Common methods for array references. has 'queue' => ( - traits => ['Array'], - is => 'ro', - isa => 'ArrayRef[Str]', - default => sub { [] }, - handles => { - add_item => 'push', - next_item => 'shift', - } + traits => ['Array'], + is => 'ro', + isa => 'ArrayRef[Str]', + default => sub { [] }, + handles => { + add_item => 'push', + next_item => 'shift', + # ... + } ); =item L @@ -203,13 +209,14 @@ Common methods for array references. Common methods for code references. has 'callback' => ( - traits => ['Code'], - is => 'ro', - isa => 'CodeRef', - default => sub { sub { 'called' } }, - handles => { - call => 'execute', - } + traits => ['Code'], + is => 'ro', + isa => 'CodeRef', + default => sub { sub { 'called' } }, + handles => { + call => 'execute', + # ... + } ); =back