From: ts Date: 2003-11-17T10:22:45+09:00 Subject: Re: overload method in module_eval, how? >>>>> "S" == Simon Strandgaard writes: S> Still only the first output statement are working. S> I don't understand why the successive print-statements doesn't output S> anything. Any hints ? I've given the hint : method is a Symbol, and the method Symbol#arity is not defined. You must first call Kernel#method with the symbol as argument and then call arity svg% ruby -e 'def test_x() end; method = :test_x; p method(method).class' Method svg% svg% ruby -e 'def test_x() end; method = :test_x; p method(method).arity' 0 svg% -- Guy Decoux