/usr/share/perl5/Prophet/PropChange.pm is in libprophet-perl 0.750-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | package Prophet::PropChange;
use Any::Moose;
has name => (
is => 'rw',
isa => 'Str',
);
has old_value => (
is => 'rw',
isa => 'Str|Undef',
);
has new_value => (
is => 'rw',
isa => 'Str|Undef',
);
=head1 NAME
Prophet::PropChange
=head1 DESCRIPTION
This class encapsulates a single property change.
=head1 METHODS
=head2 name
The name of the property we're talking about.
=head2 old_value
What L</name> changed I<from>.
=head2 new_value
What L</name> changed I<to>.
=cut
sub summary {
my $self = shift;
my $name = $self->name || '(property name missing)';
my $old = $self->old_value;
my $new = $self->new_value;
if (!defined($old)) {
return qq{+ "$name" set to "}.($new||'').qq{"};
}
elsif (!defined($new)) {
return qq{- "$name" "$old" deleted.};
}
return qq{> "$name" changed from "$old" to "$new".};
}
__PACKAGE__->meta->make_immutable;
no Any::Moose;
1;
|