From: Austin Ziegler Date: 2003-11-21T01:33:56+09:00 Subject: Re: behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2? On Fri, 21 Nov 2003 00:31:05 +0900, ts wrote: >>>>>> "A" == Austin Ziegler writes: > A> Is there an easy way for String#gsub (et al.) to check the arity of A> > the provided block? I had actually done what you did, Guy, but I don't know the C side of Ruby, so I don't know how easy it is. I think that this is probably a good stab at a solution, though. -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.11.20 * 11.31.12