method

parameters

v1_9_2_180 - Show latest stable - Class: Proc
parameters()
public

returns the parameter information of this proc.

prc = lambda{|x, y=42, *rest|}
prc.parameters  #=> [[:req, :x], [:opt, :y], [:rest, :rest]]