From: ts Date: 2003-08-28T17:35:06+09:00 Subject: Re: getting the arity >>>>> "J" == Jeff Mitchell writes: J> So it appears impossible to get the arity of a method in a class J> without making an instance of that class. Is this true? This is just an example svg% cat b.rb #!/usr/bin/ruby class A def a(b) end def b(c, d) end end A.instance_methods(false).each do |m| p "#{m} : #{A.instance_method(m).arity}" end svg% svg% b.rb "b : 2" "a : 1" svg% Guy Decoux