From: "NARUSE, Yui" Date: 2011-12-04T12:41:16+09:00 Subject: [ruby-core:41471] Re: [ruby-trunk - Bug #5694] Proc#arity doesn't take optional arguments into account. (2011/12/03 4:20), Yehuda Katz wrote: > Yeah� it would be nice to be able to do: > > if proc.arity_range.include?(2) > if method.arity_range.include?(2) Is it really required way? For example you want to know whether you can obj.meth(a, b) or not, it should be something like obj.callable?(:meth, a, b), shouldn't it? -- NARUSE, Yui