The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::MultiValued::AttributeTrait::TagsAndRanges - attribute traits for attributes holding tagged and ranged values

VERSION

version 0.0.1_4

SYNOPSIS

  package My::Class;
  use Moose;
  use Data::MultiValued::AttributeTrait::TagsAndRanges;

  has stuff => (
    is => 'rw',
    isa => 'Int',
    traits => ['MultiValued::TagsAndRanges'],
    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::TagsAndRanges as multi-value storage:

multivalue_storage_class

Returns 'Data::MultiValued::TagsAndRanges'.

opts_to_pass_set

Returns ('tag', 'from', 'to').

opts_to_pass_get

Returns ('tag', '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.