Inspectopedia
 
2024.3

Block used instead of method reference

Info
New
Last modified: 03 December 2024

Reports blocks that can be replaced with method references.

In some situations, the substitution may be semantically different. It is recommended to check the code behavior after applying this inspection.

Use the Ignore &method(…) references checkbox to ignore static method replacements.

Inspired by 'Ruby Style Guide'