This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
215 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
package DDG::HasAttribution; | ||
# ABSTRACT: Role for a plugin that is able to give attribution informations | ||
|
||
use Moo::Role; | ||
|
||
requires qw( | ||
get_attributions | ||
); | ||
|
||
1; | ||
=head1 DESCRIPTION | ||
This L<Moo::Role> is attached to plugins which are able to give attribution back. It | ||
still can be an empty attribution. | ||
The class using this role must implement a B<get_attributions> function which gives | ||
back the attribution array. | ||
For more information about the attributions see L<DDG::Meta::Attribution>. | ||
=cut | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package DDG::IsGoodie; | ||
# ABSTRACT: Role for Goodies | ||
|
||
use Moo::Role; | ||
|
||
requires qw( | ||
handle_request_matches | ||
); | ||
|
||
=head1 | ||
This role is for plugins which are Goodies. They need to implement a | ||
B<handle_request_matches> function. | ||
Please see L<DDG::Meta::RequestHandler> and L<DDG::Meta> for more information. | ||
=cut | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package DDG::IsSpice; | ||
# ABSTRACT: Role for Spice | ||
|
||
use Moo::Role; | ||
|
||
requires qw( | ||
handle_request_matches | ||
); | ||
|
||
=head1 | ||
This role is for plugins which are Spice. They need to implement a | ||
B<handle_request_matches> function. | ||
Please see L<DDG::Meta::RequestHandler> and L<DDG::Meta> for more information. | ||
=cut | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters