| 1 | # | ||
| 2 | # This file is part of MooseX-AutoDestruct | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2011 by Chris Weyl. | ||
| 5 | # | ||
| 6 | # This is free software, licensed under: | ||
| 7 | # | ||
| 8 | # The GNU Lesser General Public License, Version 2.1, February 1999 | ||
| 9 | # | ||
| 10 | package MooseX::AutoDestruct::Trait::Attribute; | ||
| 11 | { | ||
| 12 | 1 | $MooseX::AutoDestruct::Trait::Attribute::VERSION = '0.009'; | |
| 13 | } | ||
| 14 | |||
| 15 | # ABSTRACT: Clear your attributes after a certain time | ||
| 16 | |||
| 17 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | # debugging | ||
| 21 | #use Smart::Comments '###', '####'; | ||
| 22 | |||
| 23 | 1 | ▶ | use MooseX::AutoDestruct (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 1 | my $trait = MooseX::AutoDestruct->implementation() . '::Trait::Attribute'; | |
| 26 | |||
| 27 | 1 | with $trait; | |
| 28 | |||
| 29 | 1 | !!42; | |
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | =pod | ||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | MooseX::AutoDestruct::Trait::Attribute - Clear your attributes after a certain time | ||
| 38 | |||
| 39 | =head1 VERSION | ||
| 40 | |||
| 41 | version 0.009 | ||
| 42 | |||
| 43 | =head1 DESCRIPTION | ||
| 44 | |||
| 45 | Attribute trait for L<MooseX::AutoDestruct>. This trait will compose itself | ||
| 46 | with an appropriate version-specific role depending on the version of L<Moose> | ||
| 47 | you're using. | ||
| 48 | |||
| 49 | =head1 SEE ALSO | ||
| 50 | |||
| 51 | L<MooseX:AutoDestruct>. | ||
| 52 | |||
| 53 | =head1 AUTHOR | ||
| 54 | |||
| 55 | Chris Weyl <cweyl@alumni.drew.edu> | ||
| 56 | |||
| 57 | =head1 COPYRIGHT AND LICENSE | ||
| 58 | |||
| 59 | This software is Copyright (c) 2011 by Chris Weyl. | ||
| 60 | |||
| 61 | This is free software, licensed under: | ||
| 62 | |||
| 63 | The GNU Lesser General Public License, Version 2.1, February 1999 | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | |||
| 68 | __END__ | ||