Unverified Commit 77f00d50 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4720 from shuujii/fix-Enumerable-filter_map-without-block

Fix `Enumerable#filter_map` without block; ref d380c7d2
parents c20dda4f c7c344db
......@@ -828,7 +828,7 @@ module Enumerable
end
def filter_map(&blk)
return to_enum(:find_index, val) unless blk
return to_enum(:filter_map) unless blk
ary = []
self.each do |x|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment