>>>>> "J" == Jeff Mitchell <quixoticsycophant / yahoo.com> 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