files = Dir.glob("**/*.rb")
files.reject! {|file| ... }
files.map! {|file| ... }