From: Vasco Andrade e silva Date: 2007-05-11T06:37:07+09:00 Subject: self in blocks Hi This seems to me somehow inconsistent: class A; end # 1) # output A A.class_eval { puts self } # 2) # output main (in irb) [1].each { puts self } The "problem" to me is that in 1) 'self' seems to refer to the context where yield is called, where in 2) seems to refer to the context in execution. What should i expect from 'self'`s behaviour? Tks Vasco A. Silva -- Posted via http://www.ruby-forum.com/.