>>805
トップレベルでreturn使っていない?
def f(a)
a.each{ return 1 }
end

a = [1,2,3]
f(a) # これはだいじょうび
a.each{ return 1 } # でもこれはダメ