From 8dbcc0fd947bc1e2c48ac79bf5bf9bb8b25c9bb5 Mon Sep 17 00:00:00 2001 From: cellotak Date: Sat, 30 Mar 2024 18:07:09 +0900 Subject: [PATCH] =?UTF-8?q?Proc#hash=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89?= =?UTF-8?q?=E3=81=AE=E8=AA=AC=E6=98=8E=E5=86=85=E3=81=AB=E8=AA=A4=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=82=B3=E3=83=94=E3=83=BC=E3=81=95=E3=82=8C=E3=81=9F?= =?UTF-8?q?=E3=81=A8=E6=80=9D=E3=82=8F=E3=82=8C=E3=82=8B=E8=A8=98=E8=BF=B0?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refm/api/src/_builtin/Proc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/refm/api/src/_builtin/Proc b/refm/api/src/_builtin/Proc index 6dd9a04ce0..e419901793 100644 --- a/refm/api/src/_builtin/Proc +++ b/refm/api/src/_builtin/Proc @@ -447,21 +447,6 @@ self のハッシュ値を返します。 #@end -Proc オブジェクトの引数の情報を返します。 - -Proc オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、 -各配列の要素は引数の種類に対応した以下のような Symbol と、引数名を表す Symbol の 2 要素です。 - -#@samplecode -prc = proc{|x, y=42, *other|} -p prc.parameters # => [[:opt, :x], [:opt, :y], [:rest, :other]] -prc = lambda{|x, y=42, *other|} -p prc.parameters # => [[:req, :x], [:opt, :y], [:rest, :other]] -prc = proc{|x, y=42, *other|} -p prc.parameters(lambda: true) # => [[:req, :x], [:opt, :y], [:rest, :other]] -prc = lambda{|x, y=42, *other|} -p prc.parameters(lambda: false) # => [[:opt, :x], [:opt, :y], [:rest, :other]] -#@end #@since 3.2 --- parameters(lambda: nil) -> [object] #@else