| 1 | package Catmandu::Plugin::Readonly::Droppable; | ||
| 2 | |||
| 3 | 1 | ▶ | use Catmandu::Sane; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | around drop => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 7 | 1 | my ($orig, $self) = @_; | |
| 8 | 1 | my $pkg = ref($self); | |
| 9 | 1 | $self->log->warn("trying to drop a readonly store"); | |
| 10 | 1 | my $err = Catmandu::NotImplemented->new("$pkg is readonly"); | |
| 11 | 1 | return undef, $err; | |
| 12 | 1 | }; | |
| 13 | |||
| 14 | 1 | 1; | |