| 1 | package Role::TinyCommons::Collection::GetItemByKey; | ||
| 2 | |||
| 3 | 1 | ▶ | use Role::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 6 | 1 | our $DATE = '2024-01-16'; # DATE | |
| 7 | 1 | our $DIST = 'Role-TinyCommons-Collection'; # DIST | |
| 8 | 1 | our $VERSION = '0.010'; # VERSION | |
| 9 | |||
| 10 | ### required methods | ||
| 11 | |||
| 12 | 1 | requires 'get_item_at_key'; | |
| 13 | 1 | requires 'has_item_at_key'; | |
| 14 | 1 | requires 'get_all_keys'; | |
| 15 | |||
| 16 | ### provides | ||
| 17 | |||
| 18 | # alias for has_item_at_key | ||
| 19 | 0 | ▶ | sub has_key { my $self = shift; $self->has_item_at_key(@_) } |
|
Subroutine
has_key: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | |||
| 21 | 1 | 1; | |
| 22 | # ABSTRACT: Locating an item by a key | ||
| 23 | |||
| 24 | __END__ | ||