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

Conversation

Grinnz
Copy link
Contributor

@Grinnz Grinnz commented Mar 11, 2025

Summary

Add a bit of documentation to the main guides CONVENTIONS section explaining the common example of a method that returns its invocant for chaining.

Motivation

This construct is used a lot in doc examples, but doesn't represent how the method should actually be called and its intent may not be obvious.

References

@Grinnz Grinnz added the docs label Mar 11, 2025
@kraih kraih requested review from a team, marcusramberg, kraih, jhthorsen and jberger March 11, 2025 10:08
Copy link
Member

@christopherraa christopherraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mergify mergify bot merged commit bd690df into main Mar 11, 2025
21 checks passed
@jberger
Copy link
Member

jberger commented Mar 11, 2025

Already merged but 👍 from me as well

@Grinnz Grinnz deleted the Grinnz-patch-1 branch March 11, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants