From: Vincent Pit Date: Fri, 23 Aug 2013 17:46:57 +0000 (-0300) Subject: Make sure the POD headings are linkable X-Git-Tag: v0.17~10 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FIPC-MorseSignals.git;a=commitdiff_plain;h=042406e3ab0710d6691b95bb344cbb37453d8fdb Make sure the POD headings are linkable --- diff --git a/lib/IPC/MorseSignals/Emitter.pm b/lib/IPC/MorseSignals/Emitter.pm index c6961eb..ae7afda 100644 --- a/lib/IPC/MorseSignals/Emitter.pm +++ b/lib/IPC/MorseSignals/Emitter.pm @@ -43,7 +43,13 @@ sub _check_self { =head1 METHODS -=head2 C<< new < delay => $seconds, speed => $bauds, %bme_options > >> +=head2 C + + my $ime = IPC::MorseSignals::Emitter->new( + delay => $seconds, + speed => $bauds, + %bme_options, + ); Creates a new emitter object. C specifies the delay between two sends, in seconds, while C is the number of bits sent per second. The delay value has priority over the speed. Default delay is 1 second. Extra arguments are passed to L. @@ -66,7 +72,9 @@ sub new { bless $self, $class; } -=head2 C +=head2 C + + $ime->send($pid); Sends messages enqueued with L to the process C<$pid> (or to all the C<@$pid> if C<$pid> is an array reference, in which case duplicated targets are stripped off). @@ -89,7 +97,10 @@ sub send { } } -=head2 C<< delay < $seconds > >> +=head2 C + + my $delay = $ime->delay; + $ime->delay($seconds); Returns the current delay in seconds, or set it if an argument is provided. @@ -102,7 +113,10 @@ sub delay { return $self->{delay}; } -=head2 C<< speed < $bauds > >> +=head2 C + + my $speed = $ime->speed; + $ime->speed($bauds); Returns the current speed in bauds, or set it if an argument is provided. diff --git a/lib/IPC/MorseSignals/Receiver.pm b/lib/IPC/MorseSignals/Receiver.pm index 714bfe2..1d8472f 100644 --- a/lib/IPC/MorseSignals/Receiver.pm +++ b/lib/IPC/MorseSignals/Receiver.pm @@ -37,6 +37,8 @@ This module installs C<$SIG{qw/USR1 USR2/}> handlers and forwards the bits recei =head2 C + my $imr = IPC::MorseSignals::Receiver->new(%bmr_options); + Creates a new receiver object. Its arguments are passed to L, in particular the C callback. =cut