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

Add a note about nested method declarations #439

Merged
merged 1 commit into from
May 8, 2015
Merged

Add a note about nested method declarations #439

merged 1 commit into from
May 8, 2015

Conversation

ojab
Copy link
Contributor

@ojab ojab commented May 7, 2015

Fixes #437

@@ -1421,6 +1421,36 @@ condition](#safe-assignment-in-condition).
you forget either of the rules above!
<sup>[[link](#always-warn-at-runtime)]</sup>

* <a name="no-nested-methods"></a>
Do not use nested method declarations, use lambda instead.
Copy link
Collaborator

Choose a reason for hiding this comment

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

declarations -> definitions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fxd

bbatsov added a commit that referenced this pull request May 8, 2015
Add a note about nested method declarations
@bbatsov bbatsov merged commit 0c5973a into rubocop:master May 8, 2015
@bbatsov
Copy link
Collaborator

bbatsov commented May 8, 2015

👍 Thanks!

@ojab
Copy link
Contributor Author

ojab commented May 8, 2015

Actually thank you.
I will learn proper English one day, heh.

shyouhei pushed a commit to shyouhei/ruby-style-guide that referenced this pull request Nov 11, 2015
Add a note about nested method declarations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a note about nested function declaration
3 participants