/usr/share/perl5/Mason/Plugin.pm is in libmason-perl 2.24-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 | package Mason::Plugin;
$Mason::Plugin::VERSION = '2.24';
use Mason::PluginRole;
use Mason::Util qw(can_load);
use Class::Load;
method requires_plugins ($plugin_class:) {
return ();
}
method expand_to_plugins ($plugin_class:) {
return ( $plugin_class,
Mason::PluginManager->process_plugin_specs( [ $plugin_class->requires_plugins ] ) );
}
method get_roles_for_mason_class ($plugin_class: $name) {
my @roles_to_try = join( "::", $plugin_class, $name );
if ( $name eq 'Component' ) {
push( @roles_to_try, join( "::", $plugin_class, 'Filters' ) );
}
my @roles = grep { Class::Load::is_class_loaded($_) || can_load($_) } @roles_to_try;
return @roles;
}
1;
|