diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-12-05 16:35:23 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-12-05 16:35:23 +0000 |
commit | 1cf5a18364a27c8034b58503ee1e142f7e1003fb (patch) | |
tree | e75f41e3e4f23d63c7cea49fbc690420345ac9fc | |
parent | Build results of beb5924 (on master) (diff) | |
parent | WIP use pod::weaver really (diff) | |
download | data-multivalued-1cf5a18364a27c8034b58503ee1e142f7e1003fb.tar.gz data-multivalued-1cf5a18364a27c8034b58503ee1e142f7e1003fb.tar.bz2 data-multivalued-1cf5a18364a27c8034b58503ee1e142f7e1003fb.zip |
Build results of beb5924 (on master)
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | lib/Data/MultiValued/AttributeTrait.pm | 28 |
2 files changed, 15 insertions, 15 deletions
@@ -1,6 +1,6 @@ Revision history for Data::MultiValued -0.0.1_3 2011-12-05 16:33:36 Europe/London +0.0.1_3 2011-12-05 16:35:17 Europe/London 0.0.1_2 2011-11-30 11:01:47 Europe/London - remove the need for perl 5.12 diff --git a/lib/Data/MultiValued/AttributeTrait.pm b/lib/Data/MultiValued/AttributeTrait.pm index 322feb2..c43c4be 100644 --- a/lib/Data/MultiValued/AttributeTrait.pm +++ b/lib/Data/MultiValued/AttributeTrait.pm @@ -302,6 +302,20 @@ into Moose attributes. =head1 ATTRIBUTES +=head2 + +These are the attributes that this trait adds to the attribute in +your class. Example: + + has stuff => ( + is => 'rw', + isa => 'Int', + traits => ['MultiValued::Tags'], + predicate => 'has_stuff', + multi_accessor => 'stuff_tagged', + multi_predicate => 'has_stuff_tagged', + ); + =head2 C<full_storage_slot> The instance slot to use to store the C<Data::MultiValued::Tags> or @@ -445,20 +459,6 @@ Returns the result of calling C<_as_hash> on the value inside the L</full_storage_slot> of the instance. Returns nothing if the slot does not have a value. -=head1 ATTRIBUTES - -These are the attributes that this trait adds to the attribute in -your class. Example: - - has stuff => ( - is => 'rw', - isa => 'Int', - traits => ['MultiValued::Tags'], - predicate => 'has_stuff', - multi_accessor => 'stuff_tagged', - multi_predicate => 'has_stuff_tagged', - ); - =head1 Implementation details The multi-value object is stored in the instance slot named by the |