Skip to content

Commit

Permalink
more links
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 1, 2013
1 parent a0a2038 commit 1d78824
Show file tree
Hide file tree
Showing 44 changed files with 136 additions and 135 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Asset.pm
Expand Up @@ -100,7 +100,7 @@ False.
my $bool = $asset->is_range;
Check if asset has a C<start_range> or C<end_range>.
Check if asset has a L</"start_range"> or L</"end_range">.
=head2 move_to
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/Asset/File.pm
Expand Up @@ -193,15 +193,15 @@ Filehandle, created on demand.
my $path = $file->path;
$file = $file->path('/home/sri/foo.txt');
File path used to create C<handle>, can also be automatically generated if
File path used to create L</"handle">, can also be automatically generated if
necessary.
=head2 tmpdir
my $tmpdir = $file->tmpdir;
$file = $file->tmpdir('/tmp');
Temporary directory used to generate C<path>, defaults to the value of the
Temporary directory used to generate L</"path">, defaults to the value of the
MOJO_TMPDIR environment variable or auto detection.
=head1 METHODS
Expand Down Expand Up @@ -239,7 +239,7 @@ True.
$file = $file->move_to('/home/sri/bar.txt');
Move asset data into a specific file and disable C<cleanup>.
Move asset data into a specific file and disable L</"cleanup">.
=head2 size
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Asset/Memory.pm
Expand Up @@ -102,7 +102,7 @@ implements the following new ones.
my $bool = $mem->auto_upgrade;
$mem = $mem->auto_upgrade($bool);
Try to detect if content size exceeds C<max_memory_size> limit and
Try to detect if content size exceeds L</"max_memory_size"> limit and
automatically upgrade to a L<Mojo::Asset::File> object.
=head2 max_memory_size
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Base.pm
Expand Up @@ -176,7 +176,7 @@ flag or a base class.
has [qw(name1 name2 name3)] => 'foo';
has [qw(name1 name2 name3)] => sub {...};
Create attributes for hash-based objects, just like the C<attr> method.
Create attributes for hash-based objects, just like the L</"attr"> method.
=head1 METHODS
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Collection.pm
Expand Up @@ -279,7 +279,7 @@ Create a new collection without duplicate elements.
In addition to the methods above, you can also call methods provided by all
elements in the collection directly and create a new collection from the
results, similar to C<pluck>.
results, similar to L</"pluck">.
push @$collection, Mojo::DOM->new("<div><h1>$_</h1></div>") for 1 .. 9;
say $collection->at('h1')->type('h2')->prepend_content('Test ')->root;
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/Content.pm
Expand Up @@ -512,8 +512,8 @@ Check if content is C<gzip> compressed.
my $bool = $content->is_dynamic;
Check if content will be dynamically generated, which prevents C<clone> from
working.
Check if content will be dynamically generated, which prevents L</"clone">
from working.
=head2 is_finished
Expand All @@ -525,7 +525,7 @@ Check if parser is finished.
my $bool = $content->is_limit_exceeded;
Check if buffer has exceeded C<max_buffer_size>.
Check if buffer has exceeded L</"max_buffer_size">.
=head2 is_multipart
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Content/MultiPart.pm
Expand Up @@ -260,7 +260,7 @@ implements the following new ones.
my $multi = Mojo::Content::MultiPart->new;
Construct a new L<Mojo::Content::MultiPart> object and subscribe to C<read>
Construct a new L<Mojo::Content::MultiPart> object and subscribe to L</"read">
event with default content parser.
=head2 body_contains
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Content/Single.pm
Expand Up @@ -122,8 +122,8 @@ implements the following new ones.
my $single = Mojo::Content::Single->new;
Construct a new L<Mojo::Content::Single> object and subscribe to C<read> event
with default content parser.
Construct a new L<Mojo::Content::Single> object and subscribe to L</"read">
event with default content parser.
=head2 body_contains
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/DOM.pm
Expand Up @@ -431,7 +431,7 @@ into XML mode and everything becomes case sensitive.
say $dom->at('P')->text;
say $dom->P->{ID};
XML detection can also be disabled with the C<xml> method.
XML detection can also be disabled with the L</"xml"> method.
# Force XML semantics
$dom->xml(1);
Expand All @@ -448,8 +448,8 @@ L<Mojo::DOM> implements the following methods.
my $dom = Mojo::DOM->new;
my $dom = Mojo::DOM->new('<foo bar="baz">test</foo>');
Construct a new array-based L<Mojo::DOM> object and C<parse> HTML/XML fragment
if necessary.
Construct a new array-based L<Mojo::DOM> object and L</"parse"> HTML/XML
fragment if necessary.
=head2 all_text
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/DOM/CSS.pm
Expand Up @@ -615,13 +615,13 @@ following new ones.
my $bool = $css->match('head > title');
Match CSS selector against first node in C<tree>.
Match CSS selector against first node in L</"tree">.
=head2 select
my $results = $css->select('head > title');
Run CSS selector against C<tree>.
Run CSS selector against L</"tree">.
=head1 SEE ALSO
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Date.pm
Expand Up @@ -108,7 +108,7 @@ following new ones.
my $date = Mojo::Date->new;
my $date = Mojo::Date->new('Sun Nov 6 08:49:37 1994');
Construct a new L<Mojo::Date> object and C<parse> date if necessary.
Construct a new L<Mojo::Date> object and L</"parse"> date if necessary.
=head2 parse
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/EventEmitter.pm
Expand Up @@ -147,7 +147,7 @@ Emit event.
$e = $e->emit_safe('foo');
$e = $e->emit_safe('foo', 123);
Emit event safely and emit C<error> event on failure.
Emit event safely and emit L</"error"> event on failure.
=head2 has_subscribers
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Home.pm
Expand Up @@ -109,7 +109,8 @@ following new ones.
my $home = Mojo::Home->new;
my $home = Mojo::Home->new('/home/sri/myapp');
Construct a new L<Mojo::Home> object and C<parse> home directory if necessary.
Construct a new L<Mojo::Home> object and L</"parse"> home directory if
necessary.
=head2 detect
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -556,8 +556,8 @@ loop object from everywhere inside the process.
Mojo::IOLoop->start;
$loop->start;
Start the event loop, this will block until C<stop> is called. Note that some
reactors stop automatically if there are no events being watched anymore.
Start the event loop, this will block until L</"stop"> is called. Note that
some reactors stop automatically if there are no events being watched anymore.
# Start event loop only if it is not running already
Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
Expand All @@ -568,7 +568,7 @@ reactors stop automatically if there are no events being watched anymore.
$loop->stop;
Stop the event loop, this will not interrupt any existing connections and the
event loop can be restarted by running C<start> again.
event loop can be restarted by running L</"start"> again.
=head2 stream
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -152,8 +152,8 @@ implements the following new ones.
Increment active event counter, the returned callback can be used to decrement
the active event counter again. Arguments passed to the callback are queued in
the right order for the next step or C<finish> event and C<wait> method, the
first argument will be ignored by default.
the right order for the next step or L</"finish"> event and L</"wait"> method,
the first argument will be ignored by default.
# Capture all arguments
my $delay = Mojo::IOLoop->delay;
Expand All @@ -174,8 +174,8 @@ event counter or an error occurs in a callback.
my $arg = $delay->wait;
my @args = $delay->wait;
Start C<ioloop> and stop it again once an C<error> or C<finish> event gets
emitted, only works when C<ioloop> is not running already.
Start L</"ioloop"> and stop it again once an L</"error"> or L</"finish"> event
gets emitted, only works when L</"ioloop"> is not running already.
# Use the "finish" event to synchronize portably
$delay->on(finish => sub {
Expand Down
10 changes: 5 additions & 5 deletions lib/Mojo/Log.pm
Expand Up @@ -125,8 +125,8 @@ L<Mojo::Log> implements the following attributes.
my $handle = $log->handle;
$log = $log->handle(IO::Handle->new);
Log filehandle used by default C<message> event, defaults to opening C<path>
or C<STDERR>.
Log filehandle used by default L</"message"> event, defaults to opening
L</"path"> or C<STDERR>.
=head2 level
Expand Down Expand Up @@ -157,7 +157,7 @@ These levels are currently available:
my $path = $log->path
$log = $log->path('/var/log/mojo.log');
Log file path used by C<handle>.
Log file path used by L</"handle">.
=head1 METHODS
Expand All @@ -168,7 +168,7 @@ the following new ones.
my $log = Mojo::Log->new;
Construct a new L<Mojo::Log> object and subscribe to C<message> event with
Construct a new L<Mojo::Log> object and subscribe to L</"message"> event with
default logger.
=head2 debug
Expand Down Expand Up @@ -247,7 +247,7 @@ Check for warn log level.
$log = $log->log(debug => 'This should work.');
$log = $log->log(debug => 'This', 'too!');
Emit C<message> event.
Emit L</"message"> event.
=head2 warn
Expand Down
12 changes: 6 additions & 6 deletions lib/Mojo/Message.pm
Expand Up @@ -396,8 +396,8 @@ Maximum message size in bytes, defaults to the value of the
MOJO_MAX_MESSAGE_SIZE environment variable or C<10485760>. Setting the value
to C<0> will allow messages of indefinite size. Note that increasing this
value can also drastically increase memory usage, should you for example
attempt to parse an excessively large message body with the C<body_params>,
C<dom> or C<json> methods.
attempt to parse an excessively large message body with the L</"body_params">,
L</"dom"> or L</"json"> methods.
=head2 version
Expand All @@ -416,8 +416,8 @@ implements the following new ones.
my $bytes = $msg->body;
$msg = $msg->body('Hello!');
Slurp or replace C<content>, L<Mojo::Content::MultiPart> will be automatically
downgraded to L<Mojo::Content::Single>.
Slurp or replace L</"content">, L<Mojo::Content::MultiPart> will be
automatically downgraded to L<Mojo::Content::Single>.
=head2 body_params
Expand Down Expand Up @@ -562,7 +562,7 @@ Check if message parser/generator is finished.
my $bool = $msg->is_limit_exceeded;
Check if message has exceeded C<max_line_size> or C<max_message_size>.
Check if message has exceeded L</"max_line_size"> or L</"max_message_size">.
=head2 json
Expand Down Expand Up @@ -608,7 +608,7 @@ Size of the start line in bytes.
my $str = $msg->text;
Retrieve C<body> and try to decode it if a charset could be extracted with
Retrieve L</"body"> and try to decode it if a charset could be extracted with
L<Mojo::Content/"charset">.
=head2 to_string
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Parameters.pm
Expand Up @@ -230,7 +230,7 @@ following new ones.
my $params = Mojo::Parameters->new(foo => ['ba;r', 'b;az']);
my $params = Mojo::Parameters->new(foo => ['ba;r', 'b;az'], bar => 23);
Construct a new L<Mojo::Parameters> object and C<parse> parameters if
Construct a new L<Mojo::Parameters> object and L</"parse"> parameters if
necessary.
=head2 append
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Path.pm
Expand Up @@ -178,7 +178,7 @@ following new ones.
my $path = Mojo::Path->new;
my $path = Mojo::Path->new('/foo%2Fbar%3B/baz.html');
Construct a new L<Mojo::Path> object and C<parse> path if necessary.
Construct a new L<Mojo::Path> object and L</"parse"> path if necessary.
=head2 canonicalize
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor.pm
Expand Up @@ -167,7 +167,7 @@ Remove handle or timer. Meant to be overloaded in a subclass.
$reactor->start;
Start watching for I/O and timer events, this will block until C<stop> is
Start watching for I/O and timer events, this will block until L</"stop"> is
called. Note that some reactors stop automatically if there are no events
being watched anymore. Meant to be overloaded in a subclass.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor/EV.pm
Expand Up @@ -151,7 +151,7 @@ amount of time in seconds.
$reactor->start;
Start watching for I/O and timer events, this will block until C<stop> is
Start watching for I/O and timer events, this will block until L</"stop"> is
called or no events are being watched anymore.
=head2 stop
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor/Poll.pm
Expand Up @@ -211,7 +211,7 @@ Remove handle or timer.
$reactor->start;
Start watching for I/O and timer events, this will block until C<stop> is
Start watching for I/O and timer events, this will block until L</"stop"> is
called or no events are being watched anymore.
=head2 stop
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server.pm
Expand Up @@ -123,8 +123,8 @@ the following new ones.
my $server = Mojo::Server->new;
Construct a new L<Mojo::Server> object and subscribe to C<request> event with
default request handling.
Construct a new L<Mojo::Server> object and subscribe to L</"request"> event
with default request handling.
=head2 build_app
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -183,7 +183,7 @@ You can run the same command again for automatic hot deployment.
Starting hot deployment for Hypnotoad server 31841.
This second invocation will load the application again, detect the process id
file with it, and send a C<USR2> signal to the already running server.
file with it, and send a L</"USR2"> signal to the already running server.
For better scalability (epoll, kqueue) and to provide IPv6 as well as TLS
support, the optional modules L<EV> (4.0+), L<IO::Socket::IP> (0.16+) and
Expand Down Expand Up @@ -288,7 +288,7 @@ Listen backlog size, defaults to C<SOMAXCONN>.
Maximum number of parallel client connections per worker process, defaults to
C<1000>. Note that depending on how much your application may block, you might
want to decrease this value and increase C<workers> instead for better
want to decrease this value and increase L</"workers"> instead for better
performance.
=head2 graceful_timeout
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server/Prefork.pm
Expand Up @@ -480,8 +480,8 @@ implements the following new ones.
my $pid = $prefork->check_pid;
Get process id for running server from C<pid_file> or delete it if server is
not running.
Get process id for running server from L</"pid_file"> or delete it if server
is not running.
say 'Server is not running' unless $prefork->check_pid;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Template.pm
Expand Up @@ -384,8 +384,8 @@ automatically enabled.
%# Comment line, useful for debugging
%% Replaced with "%", useful for generating templates
Escaping behavior can be reversed with the C<auto_escape> attribute, this is
the default in L<Mojolicious> C<.ep> templates for example.
Escaping behavior can be reversed with the L</"auto_escape"> attribute, this
is the default in L<Mojolicious> C<.ep> templates for example.
<%= Perl expression, replaced with XML escaped result %>
<%== Perl expression, replaced with result %>
Expand Down

0 comments on commit 1d78824

Please sign in to comment.