| 1 | package AnyEvent::Subprocess::Done::Delegate::Handle; | ||
| 2 | 38 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 38 | $AnyEvent::Subprocess::Done::Delegate::Handle::VERSION = '1.102912'; | |
| 4 | } | ||
| 5 | # ABSTRACT: store leftover wbuf/rbuf from running Handle | ||
| 6 | 38 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 38 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 37 | with 'AnyEvent::Subprocess::Done::Delegate'; | |
| 10 | |||
| 11 | 37 | has 'rbuf' => ( | |
| 12 | is => 'ro', | ||
| 13 | isa => 'Str', | ||
| 14 | predicate => 'has_rbuf', | ||
| 15 | ); | ||
| 16 | |||
| 17 | 37 | has 'wbuf' => ( | |
| 18 | is => 'ro', | ||
| 19 | isa => 'Str', | ||
| 20 | predicate => 'has_wbuf', | ||
| 21 | ); | ||
| 22 | |||
| 23 | 37 | __PACKAGE__->meta->make_immutable; | |
| 24 | |||
| 25 | 37 | 1; | |
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | =pod | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | AnyEvent::Subprocess::Done::Delegate::Handle - store leftover wbuf/rbuf from running Handle | ||
| 34 | |||
| 35 | =head1 VERSION | ||
| 36 | |||
| 37 | version 1.102912 | ||
| 38 | |||
| 39 | =head1 ATTRIBUTES | ||
| 40 | |||
| 41 | =head2 rbuf | ||
| 42 | |||
| 43 | =head2 wbuf | ||
| 44 | |||
| 45 | Attributes to store leftover data in the handle's rbuf or wbuf. | ||
| 46 | |||
| 47 | =head1 METHODS | ||
| 48 | |||
| 49 | =head2 rbuf | ||
| 50 | |||
| 51 | =head2 wbuf | ||
| 52 | |||
| 53 | Return the residual data. | ||
| 54 | |||
| 55 | =head2 has_rbuf | ||
| 56 | |||
| 57 | =head2 has_wbuf | ||
| 58 | |||
| 59 | Check for existence of residual data. | ||
| 60 | |||
| 61 | =head1 AUTHOR | ||
| 62 | |||
| 63 | Jonathan Rockway <jrockway@cpan.org> | ||
| 64 | |||
| 65 | =head1 COPYRIGHT AND LICENSE | ||
| 66 | |||
| 67 | This software is copyright (c) 2011 by Jonathan Rockway. | ||
| 68 | |||
| 69 | This is free software; you can redistribute it and/or modify it under | ||
| 70 | the same terms as the Perl 5 programming language system itself. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | |||
| 75 | __END__ | ||