I wanted to write this :
infile = File.new("foo") infile.each do .... but typed in infile.read do ... ---- and it ran with no results - and no error messages . After a
few minutes of puzzlement
I found it. What does ruby do with the block if the method does
take one ? . Why doesn’t ruby check this kind of errors ?