mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix Enumerable#filter_map without block; ref d380c7d2
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user