X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FBit%2FMorseSignals%2FEmitter.pm;h=7e11c1dbe66f1865bb9343af5eebaf5f0bb6959e;hb=68eb455d71803aa45fd67f97c9dd628fff59e1c4;hp=eee1d7270fd222db1dad539de9ca4428c68c9f1d;hpb=7def52117700e2492a107867e95a7ccec38b2df6;p=perl%2Fmodules%2FBit-MorseSignals.git diff --git a/lib/Bit/MorseSignals/Emitter.pm b/lib/Bit/MorseSignals/Emitter.pm index eee1d72..7e11c1d 100644 --- a/lib/Bit/MorseSignals/Emitter.pm +++ b/lib/Bit/MorseSignals/Emitter.pm @@ -15,11 +15,11 @@ Bit::MorseSignals::Emitter - Base class for Bit::MorseSignals emitters. =head1 VERSION -Version 0.07 +Version 0.08 =cut -our $VERSION = '0.07'; +our $VERSION = '0.08'; =head1 SYNOPSIS @@ -64,6 +64,8 @@ sub _count_bits { =head2 C + my $bme = Bit::MorseSignals::Emitter->new; + L object constructor. Currently does not take any optional argument. =cut @@ -81,7 +83,9 @@ sub new { return $self; } -=head2 C<< post $msg, < type => $type > >> +=head2 C + + $bme->post($msg, type => $type); Adds C<$msg> to the message queue and, if no other message is currently processed, dequeue the oldest item and prepare it. The type is automatically chosen, but you may want to try to force it with the C option : C<$type> is then one of the C constants listed in L