| 1 | package Claude::Agent::Permission::Result::Deny; | ||||||||||
| 2 | |||||||||||
| 3 | 10 | ▶ | use 5.020; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 10 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 10 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 10 | ▶ | use Object::Proto (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 10 | ▶ | use Claude::Agent::Permission::Result; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 10 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 10 | Object::Proto::define('Claude::Agent::Permission::Result::Deny', | |||||||||
| 12 | extends => 'Claude::Agent::Permission::Result', | ||||||||||
| 13 | 'message:Str:predicate', | ||||||||||
| 14 | 'interrupt:predicate', | ||||||||||
| 15 | ); | ||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 15 | ▶ | sub BUILD { | ||||||||
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 19 | 15 | my ($self) = @_; | |||||||||
| 20 | 15 | $self->behavior('deny'); | |||||||||
| 21 | 15 | return; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 9 | ▶ | sub to_hash { | ||||||||
|
Subroutine
to_hash: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 25 | 9 | my ($self) = @_; | |||||||||
| 26 | 9 | ▶ | my $hash = { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | behavior => 'deny', | ||||||||||
| 28 | interrupt => $self->interrupt ? \1 : \0, | ||||||||||
| 29 | }; | ||||||||||
| 30 | 9 | ▶ | $hash->{message} = $self->message if $self->has_message; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 9 | return $hash; | |||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 10 | 1; | |||||||||
| 35 | |||||||||||
| 36 | __END__ | ||||||||||