From: ts Date: 2002-11-11T19:38:07+09:00 Subject: Re: Klass.method(:new).arity == -1 violates my POLS! >>>>> "R" == Rich Kilmer writes: R> The problem is the initialize method is private instance method, so I R> don't know how you can get ahold of it to get its arity without an R> instance (which allocate gives you without calling initialize). pigeon% cat b.rb #!/usr/bin/ruby class K def initialize(a) end end p K.instance_method(:initialize).arity pigeon% pigeon% b.rb 1 pigeon% Guy Decoux