Skip to content

Commit 9b9ea95

Browse files
authored
Mojolicious::Guides: explain the convention of method examples that return the invocant
1 parent a9e7e6b commit 9b9ea95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Mojolicious/Guides.pod

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ C<$chars> to distinguish whether it is encoded bytes or decoded characters in a
5858
the value just indicates true or false, C<$c> to denote a L<Mojolicious::Controller> object, or C<$app> to denote the
5959
L<application|Mojolicious> object.
6060

61+
When the return value of a method is the object it was called on, this will be represented by using the same variable
62+
name in the example. This does not mean the return value needs to be assigned back to it, but indicates that further
63+
methods can be L<called in a chain|Mojo::Base/"FLUENT INTERFACES">.
64+
6165
=head1 TUTORIAL
6266

6367
=over 2

0 commit comments

Comments
 (0)