[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2?

Austin Ziegler

11/20/2003 4:34:00 PM

On Fri, 21 Nov 2003 00:31:05 +0900, ts wrote:
>>>>>> "A" == Austin Ziegler <austin@halostatue.ca> 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