method

parameters

Importance_1
parameters() public

returns the parameter information of this proc.

prc = lambda{|x, y=42, *rest|}
prc.parameters  #=> [[:req, :x], [:opt, :y], [:rest, :rest]]
Show source
Register or log in to add new notes.