From: Tobias Reif Date: 2001-11-03T05:43:11+09:00 Subject: [ruby-talk:24201] Re: "yield called out of block" Mark Slagell wrote: > Having just talked with a nuby in email, I believe this error message > should be reworded. > > irb(main):009:0> [1,2,3].each > LocalJumpError: yield called out of block > from (irb):9:in `each' > from (irb):9 > > How about any of the following: > > "yield called but no block given" > "there is nothing to yield to" > "an iterator usually needs to be given something to do" ;-) I saw the same error message today, and it didn't help to solve the problem. Any of your suggestion would be good; the last one is the best. Or: 'no task given for the iterator'. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/