X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FBit%2FMorseSignals%2FReceiver.pm;h=1eb7befe980215f25a39526ba1335299e42c68ce;hb=68eb455d71803aa45fd67f97c9dd628fff59e1c4;hp=25190aed26b050c7bb35075de59a5bd44a4273d2;hpb=7def52117700e2492a107867e95a7ccec38b2df6;p=perl%2Fmodules%2FBit-MorseSignals.git diff --git a/lib/Bit/MorseSignals/Receiver.pm b/lib/Bit/MorseSignals/Receiver.pm index 25190ae..1eb7bef 100644 --- a/lib/Bit/MorseSignals/Receiver.pm +++ b/lib/Bit/MorseSignals/Receiver.pm @@ -15,11 +15,11 @@ Bit::MorseSignals::Receiver - Base class for Bit::MorseSignals receivers. =head1 VERSION -Version 0.07 +Version 0.08 =cut -our $VERSION = '0.07'; +our $VERSION = '0.08'; =head1 SYNOPSIS @@ -46,7 +46,9 @@ sub _check_self { =head1 METHODS -=head2 C<< new < done => $cb > >> +=head2 C + + my $bmr = Bit::MorseSignals::Receiver->new(done => $cb); L object constructor. With the C<'done'> option, you can specify a callback that will be triggered every time a message is completed, and in which C<$_[0]> will be the receiver object and C<$_[1]> the message received. @@ -66,7 +68,9 @@ sub new { return $self; } -=head2 C +=head2 C + + $bmr->push($bit); Tells the receiver that you have received the bit C<$bit>. Returns true while the message isn't completed, and C as soon as it is.