D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Proc
/
Filename :
parameters-i.ri
back
Copy
U:RDoc::AnyMethod[iI"parameters:ETI"Proc#parameters;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DReturns the parameter information of this proc. If the lambda ;TI"Ekeyword is provided and not nil, treats the proc as a lambda if ;TI"'true and as a non-lambda if false.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"#prc = proc{|x, y=42, *other|} ;TI"Cprc.parameters #=> [[:opt, :x], [:opt, :y], [:rest, :other]] ;TI"%prc = lambda{|x, y=42, *other|} ;TI"Cprc.parameters #=> [[:req, :x], [:opt, :y], [:rest, :other]] ;TI"#prc = proc{|x, y=42, *other|} ;TI"Qprc.parameters(lambda: true) #=> [[:req, :x], [:opt, :y], [:rest, :other]] ;TI"%prc = lambda{|x, y=42, *other|} ;TI"Pprc.parameters(lambda: false) #=> [[:opt, :x], [:opt, :y], [:rest, :other]];T:@format0: @fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0I"+prc.parameters(lambda: nil) -> array ;T0[ I"(p1 = {});T@FI" Proc;TcRDoc::NormalClass00