From: ts Date: 2001-11-04T19:05:05+09:00 Subject: [ruby-talk:24316] Re: yield works, but no block given >>>>> "t" == ts writes: >>>>> "J" == Joel VanderWerf writes: J> Is yield psychic? t> Yes, t> block_given? return true if a block was given to the current frame. t> yield look in the current frame, and the previous frame. This is stupid, sorry (bad day :-() yield look in the current frame, and the previous frame. block_given? return true if a block was given to the previous frame, but because block_given? is a method ruby has added a frame. Guy Decoux