This cop checks for uses of unidiomatic method names from the Enumerable module.
The current definition of the check is flawed and should be enhanced by check for by blocks & procs as arguments of the methods.
# File lib/rubocop/cop/style/collection_methods.rb, line 27 def autocorrect(node) @corrections << lambda do |corrector| corrector.replace(node.loc.selector, preferred_method(node.loc.selector.source)) end end
Generated with the Darkfish Rdoc Generator 2.