From: Rick DeNatale Date: 2009-11-25T01:46:27+09:00 Subject: [ruby-core:26897] Re: Ruby constant lookup On Tue, Nov 24, 2009 at 9:47 AM, Shugo Maeda wrote: > Hi, > > 2009/11/24 Shugo Maeda : >> * If no arguments are passed to instance_eval or class_eval, it should >> behave the same as 1.8. > > instance_eval does not yield the receiver in Ruby 1.9. > This change is introduced as a result of the following discussion: > > �http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7365 > > Should instance_eval yield the receiver or not? If this were a democracy , I'd vote to make it work as it does in 1.8 and yield the receiver. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale