Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better descriptions for object constructors with events
  • Loading branch information
kraih committed Nov 11, 2011
1 parent ffd944e commit 97f7151
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Content/MultiPart.pm
Expand Up @@ -286,8 +286,8 @@ implements the following new ones.
my $multi = Mojo::Content::MultiPart->new;
Construct a new L<Mojo::Content::MultiPart> object and register default
C<read> event.
Construct a new L<Mojo::Content::MultiPart> object and subscribe to C<read>
event with default content parser.
=head2 C<body_contains>
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Content/Single.pm
Expand Up @@ -133,8 +133,8 @@ implements the following new ones.
my $single = Mojo::Content::Single->new;
Construct a new L<Mojo::Content::Single> object and register default C<read>
event.
Construct a new L<Mojo::Content::Single> object and subscribe to C<read>
event with default content parser.
=head2 C<body_contains>
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -105,8 +105,7 @@ Decrement active event counter.
my @args = $delay->wait;
Start C<ioloop> and register C<finish> event that stops it again once the
active event counter reaches zero.
Start C<ioloop> and stop it again once the C<finish> event gets emitted.
=head1 SEE ALSO
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -183,7 +183,8 @@ the following new ones.
my $log = Mojo::Log->new;
Construct a new L<Mojo::Log> object and register default C<message> event.
Construct a new L<Mojo::Log> object and subscribe to C<message> event with
default logger.
=head2 C<debug>
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Server.pm
Expand Up @@ -142,7 +142,8 @@ implements the following new ones.
my $server = Mojo::Server->new;
Construct a new L<Mojo::Server> object and register default C<request> event.
Construct a new L<Mojo::Server> object and subscribe to C<request> event with
default request handling.
=head2 C<build_tx>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -742,7 +742,7 @@ Data storage persistent only for the next request, stored in the session.
my $cb = $c->on(finish => sub {...});
Register event with C<tx>, which is usually a L<Mojo::Transaction::HTTP> or
Subscribe to C<tx> event, which is usually a L<Mojo::Transaction::HTTP> or
L<Mojo::Transaction::WebSocket> object.
# Emitted when the transaction has been finished
Expand Down

0 comments on commit 97f7151

Please sign in to comment.