rubocop / ruby-style-guide

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

Add a new bad example to the "Proc Application Shorthand" section #931

Closed ydakuka closed 1 year ago

ydakuka commented 1 year ago

Use the Proc call shorthand when the block has only one numbered parameter as a receiver.