| 1 | package Data::KeyDiff::Element; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Object::Tiny qw/key value rank position item in_before in_after is_new/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 DESCRIPTION | ||
| 9 | |||
| 10 | An element from a set | ||
| 11 | |||
| 12 | =head1 METHODS | ||
| 13 | |||
| 14 | =head2 $element->key | ||
| 15 | |||
| 16 | The key of the item | ||
| 17 | |||
| 18 | =head2 $element->value | ||
| 19 | |||
| 20 | The prepared value of the item, if a prepare method was given (otherwise, this is just the original item) | ||
| 21 | |||
| 22 | =head2 $element->rank | ||
| 23 | |||
| 24 | The rank of the item in the set | ||
| 25 | |||
| 26 | =head2 $element->position | ||
| 27 | |||
| 28 | The position of the item in the set | ||
| 29 | |||
| 30 | =head2 $element->item | ||
| 31 | |||
| 32 | The original, unmodified item from the set | ||
| 33 | |||
| 34 | =head2 $element->in_before | ||
| 35 | |||
| 36 | Indicates that the item is from the before set | ||
| 37 | |||
| 38 | =head2 $element->in_after | ||
| 39 | |||
| 40 | Indicates that the item is from the after set | ||
| 41 | |||
| 42 | =head2 $element->is_new | ||
| 43 | |||
| 44 | Indicates that the item is new | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | 3 | 1; | |