X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FAttribute%2FNative.pm;h=fc294be45bf33bb66ca638e67e17b7d699fca20a;hb=ae7820b1b884344a7ee90d94b484ca46459eb7b1;hp=66455da85c5981ce3b9989e152d5e02fb826bee2;hpb=7a10df4daf77f0efcf873693e0868b845387430d;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Attribute/Native.pm b/lib/Moose/Meta/Attribute/Native.pm index 66455da..fc294be 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_03'; +our $VERSION = '1.06'; $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