Data::MultiValued::AttributeTrait::Ranges - attribute traits for attributes holding ranged values
version 0.0.1_4
package My::Class; use Moose; use Data::MultiValued::AttributeTrait::Ranges; has stuff => ( is => 'rw', isa => 'Int', traits => ['MultiValued::Ranges'], predicate => 'has_stuff', multi_accessor => 'stuff_tagged', multi_predicate => 'has_stuff_tagged', );
This role consumes Data::MultiValued::AttributeTrait and specialises it to use Data::MultiValued::Ranges as multi-value storage:
multivalue_storage_class
Returns 'Data::MultiValued::Ranges'.
'Data::MultiValued::Ranges'
opts_to_pass_set
Returns ('from', 'to').
('from', 'to')
opts_to_pass_get
Returns ('at').
('at')
Gianni Ceccarelli <dakkar@thenautilus.net>
This software is copyright (c) 2011 by Net-a-Porter.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::MultiValued, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::MultiValued
CPAN shell
perl -MCPAN -e shell install Data::MultiValued
For more information on module installation, please visit the detailed CPAN module installation guide.