From: Pit Capitain Date: 2005-05-18T05:12:18+09:00 Subject: Re: Help regarding def wrapper Nikolai Weibull schrieb: > Gavin Kistner wrote: > >>What do you prefer about the above, versus the existing (and, IMO, >>slightly prettier): >> >>class A >> private; def meth1( arg1, arg2=:foo ) >> 'private' >> end >>end > > Well, the visibility will affect all methods defined after it and I > really want to intermingle methods of varying visibility, i.e., not, as > you suggest below, to group them by visibility. But you *can* use Gavin's syntax, if you "decorate" *every* method with its visibility. The sequence doesn't matter at all in this case. Regards, Pit