| 1 | package Message::Passing::Output::Null; | ||
| 2 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | with 'Message::Passing::Role::Output'; | |
| 6 | |||
| 7 | ▶ | sub consume {} | |
|
Subroutine
consume: called CC=1 SCAR=0.0
Pod
documented
| |||
| 8 | |||
| 9 | |||
| 10 | 2 | 1; | |
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Message::Passing::Output::Null - /dev/null for messages | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | message-pass --input STDIN --output Null | ||
| 19 | {"foo": "bar"} | ||
| 20 | |||
| 21 | # Note noting is printed... | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | Throws away all messages passed to it. | ||
| 26 | |||
| 27 | =head1 METHODS | ||
| 28 | |||
| 29 | =head2 consume | ||
| 30 | |||
| 31 | Takes a message and discards it silently. | ||
| 32 | |||
| 33 | =head1 SEE ALSO | ||
| 34 | |||
| 35 | L<Message::Passing> | ||
| 36 | |||
| 37 | =head1 SPONSORSHIP | ||
| 38 | |||
| 39 | This module exists due to the wonderful people at Suretec Systems Ltd. | ||
| 40 | <http://www.suretecsystems.com/> who sponsored its development for its | ||
| 41 | VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with | ||
| 42 | the SureVoIP API - | ||
| 43 | <http://www.surevoip.co.uk/support/wiki/api_documentation> | ||
| 44 | |||
| 45 | =head1 AUTHOR, COPYRIGHT AND LICENSE | ||
| 46 | |||
| 47 | See L<Message::Passing>. | ||
| 48 | |||
| 49 | =cut | ||