Project

General

Profile

Bug #574 ยป proc_arity.rb

gendag (Andrea Forni), 09/19/2008 04:18 AM

 
puts Proc.new{}.arity
puts Proc.new{||}.arity
puts Proc.new{|a|}.arity
puts Proc.new{|a,b|}.arity
puts Proc.new{|a,b,c|}.arity
    (1-1/1)