A
abc
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.
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.