Pattern: Misused method from Enumerable
module
Issue: -
This rule enforces the use of consistent method names from the Enumerable
module.
Unfortunately this rule cannot actually know if a method is from Enumerable
or not (static analysis limitation), so it can yield some false positives.
Attribute | Value |
---|---|
PreferredMethods | {"collect"=>"map", "collect!"=>"map!", "inject"=>"reduce", "detect"=>"find", "find_all"=>"select"} |