From: ts Date: 2003-11-17T10:22:32+09:00 Subject: Re: overload method in module_eval, how? >>>>> "S" == Simon Strandgaard writes: S> any ideas to what can cause such a problem ? S> args.each{|method| S> name = method.id2name S> org = "_debug_"+name S> arguments = (method.arity > 0) ? "(*a,&b)" : "(&b)" svg% ruby -e 'def test_x() end; :test_x.arity' -e:1: undefined method `arity' for :test_x:Symbol (NoMethodError) svg% svg% ruby -e 'def test_x() end; p method(:test_x).arity' 0 svg% and you can have an arity < 0 -- Guy Decoux