rubocop / ruby-style-guide

A community-driven Ruby coding style guide
https://rubystyle.guide
16.47k stars 3.4k forks source link

Add section on ambiguous endless method definitions #949

Closed dvandersluis closed 1 month ago

dvandersluis commented 1 month ago

Reference: https://github.com/rubocop/rubocop/pull/13288#issuecomment-2413435783

Adds a section for avoiding perceived ambiguity in endless method definitions to go along with the Style/AmbiguousEndlessMethodDefinition cop added in https://github.com/rubocop/rubocop/pull/13288.

bbatsov commented 1 month ago

Looks reasonable to me. Thanks!