Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mojolicious::Guides: explain the convention of method examples that return the invocant #2237

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/Mojolicious/Guides.pod
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ C<$chars> to distinguish whether it is encoded bytes or decoded characters in a
the value just indicates true or false, C<$c> to denote a L<Mojolicious::Controller> object, or C<$app> to denote the
L<application|Mojolicious> object.

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

=head1 TUTORIAL

=over 2
Expand Down
Loading