From: abc Date: 2009-04-02T19:04:43+09:00 Subject: How to create blocks with arity known at runtime Hi everyone, is it possible to create blocks of arity known at runtime, other than simply using a variable list of params: Proc.new { |*a| ... } I'm looking for somthing like: params = [:a, :b] Proc.new { |*params| ... } which is not legal Ruby obviously Thanks.