Inspectopedia Help

Block used instead of method reference

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'

Inspection options

Option

Type

Default

Ignore &method(…) references

Checkbox

false

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3

Plugin:

Ruby, 233.SNAPSHOT

Last modified: 13 July 2023