Gianni Ceccarelli > Data-MultiValued-0.0.1_4 > Data::MultiValued::AttributeTrait::Ranges

Download:
Data-MultiValued-0.0.1_4.tar.gz

Dependencies

Annotate this POD

Module Version: 0.0.1_4   Source  

NAME ^

Data::MultiValued::AttributeTrait::Ranges - attribute traits for attributes holding ranged values

VERSION ^

version 0.0.1_4

SYNOPSIS ^

  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',
  );

DESCRIPTION ^

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'.

opts_to_pass_set

Returns ('from', 'to').

opts_to_pass_get

Returns ('at').

AUTHOR ^

Gianni Ceccarelli <dakkar@thenautilus.net>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: