From: ts Date: 2003-11-21T00:31:05+09:00 Subject: Re: behaviour change of String#gsub(pattern) {|m| ... } for ruby 1.9/ruby2? >>>>> "A" == Austin Ziegler writes: A> Is there an easy way for String#gsub (et al.) to check the arity of A> the provided block? svg% cat b.rb #!/usr/bin/ruby def a(&block) p block.arity end a {|x| } a {|x, y| } svg% svg% b.rb 1 2 svg% Guy Decoux