Fix Enumerable#filter_map without block; ref d380c7d2

This commit is contained in:
KOBAYASHI Shuji
2019-09-18 19:33:15 +09:00
parent c20dda4f4c
commit c7c344dbc2
+1 -1
View File
@@ -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|