From: Pit Capitain Date: 2005-05-17T23:08:37+09:00 Subject: Re: Help regarding def wrapper Gavin Kistner schrieb: > On May 17, 2005, at 7:52 AM, Nikolai Weibull wrote: > >> I’d like to have a def that I can scope in one go, i.e., > > With your technique, you cannot declare default values for arguments, > correct? (At least, not in blocks in 1.8) Adding to Gavin's answer, note the following difference: class A a = 5 scoped_def :public, :m1 do a rescue $! end def m2() a rescue $! end end p A.new.m1 # => 5 p A.new.m2 # => # Regards, Pit