From: Mark Slagell Date: 2001-11-03T02:13:25+09:00 Subject: [ruby-talk:24183] "yield called out of block" 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" ;-) Anyway, the current message doesn't quite seem to capture what is wrong. My correpondent was convinced there was something wrong with the iterator method. -- Mark