Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document AUTOLOAD use consistently
  • Loading branch information
kraih committed Jan 23, 2014
1 parent a309f75 commit 580d8aa
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
14 changes: 6 additions & 8 deletions lib/Mojo/ByteStream.pm
Expand Up @@ -91,8 +91,12 @@ Mojo::ByteStream - ByteStream
=head1 DESCRIPTION
L<Mojo::ByteStream> provides a more friendly API for the bytestream
manipulation functions in L<Mojo::Util>.
L<Mojo::ByteStream> is a scalar-based container for bytestreams that provides
a more friendly API for many of the functions in L<Mojo::Util>.
# Access scalar directly to manipulate bytestream
my $stream = Mojo::ByteStream->new('foo');
$$stream .= 'bar';
=head1 FUNCTIONS
Expand Down Expand Up @@ -350,12 +354,6 @@ Always true.
Alias for L</to_string>.
=head1 BYTESTREAM
Direct scalar reference access to the bytestream is also possible.
$$stream .= 'foo';
=head1 SEE ALSO
L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
Expand Down
16 changes: 7 additions & 9 deletions lib/Mojo/Collection.pm
Expand Up @@ -131,7 +131,12 @@ Mojo::Collection - Collection
=head1 DESCRIPTION
L<Mojo::Collection> is a container for collections.
L<Mojo::Collection> is an array-based container for collections.
# Access array directly to manipulate collection
my $collection = Mojo::Collection->new(1 .. 25);
$collection->[23] += 100;
say for @$collection;
=head1 FUNCTIONS
Expand Down Expand Up @@ -298,7 +303,7 @@ Always true.
Stringify elements in collection and L</"join"> them with newlines.
=head1 ELEMENT METHODS
=head1 AUTOLOAD
In addition to the L</"METHODS"> above, you can also call methods provided by
all elements in the collection directly and create a new collection from the
Expand All @@ -307,13 +312,6 @@ results, similar to L</"pluck">.
push @$collection, Mojo::DOM->new("<div><h1>$_</h1></div>") for 1 .. 9;
say $collection->find('h1')->type('h2')->prepend_content('Test ')->root;
=head1 ELEMENTS
Direct array reference access to elements is also possible.
say $collection->[23];
say for @$collection;
=head1 SEE ALSO
L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -814,7 +814,7 @@ Alias for L</"attr">.
Alias for L</"to_xml">.
=head1 CHILD ELEMENTS
=head1 AUTOLOAD
In addition to the L</"METHODS"> above, many child elements are also
automatically available as object methods, which return a L<Mojo::DOM> or
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -631,7 +631,7 @@ startup. Meant to be overloaded in a subclass.
...
}
=head1 HELPERS
=head1 AUTOLOAD
In addition to the L</"ATTRIBUTES"> and L</"METHODS"> above you can also call
helpers on L<Mojolicious> objects. This includes all helpers from
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -1000,7 +1000,7 @@ You can call L</"finish"> at any time to end the stream.
o!
0
=head1 HELPERS
=head1 AUTOLOAD
In addition to the L</"ATTRIBUTES"> and L</"METHODS"> above you can also call
helpers on L<Mojolicious::Controller> objects. This includes all helpers from
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Route.pm
Expand Up @@ -578,7 +578,7 @@ L<Mojolicious::Lite> tutorial for more argument variations.
$r->websocket('/echo')->to('example#echo');
=head1 SHORTCUTS
=head1 AUTOLOAD
In addition to the L</"ATTRIBUTES"> and L</"METHODS"> above you can also call
shortcuts on L<Mojolicious::Routes::Route> objects.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Validator/Validation.pm
Expand Up @@ -225,7 +225,7 @@ Access validated parameters, similar to L<Mojolicious::Controller/"param">.
Change validation L</"topic"> and make sure a value is present and not an
empty string.
=head1 CHECKS
=head1 AUTOLOAD
In addition to the L</"ATTRIBUTES"> and L</"METHODS"> above, you can also call
validation checks provided by L<Mojolicious::Validator> on
Expand Down

0 comments on commit 580d8aa

Please sign in to comment.