るりまサーチ

最速Rubyリファレンスマニュアル検索!
215件ヒット [201-215件を表示] (0.019秒)
トップページ > クエリ:method[x] > クエリ:lambda[x]

別のキーワード

  1. irb/input-method gets
  2. irb/input-method new
  3. _builtin define_method
  4. irb/input-method encoding
  5. irb/input-method readable_atfer_eof?

検索結果

<< < 1 2 3 >>

OpenSSL::SSL::SSLContext#renegotiation_cb=(cb) (12.0)

@todo

...禁止します。
num_handshakes = 0
ctx.renegotiation_cb = lambda do |ssl|
num_handshakes += 1
raise RuntimeError.new("Client renegotiation disabled") if num_handshakes > 1
end



@param cb コールバック(Proc, Method など)もしくは nil
@see OpenSSL::SSL::SSLContext#renegoti...

Proc#parameters -> [object] (12.0)

Proc オブジェクトの引数の情報を返します。

...ck
& で指定されたブロック引数


//emlist[例][ruby]{
prc = lambda{|x, y=42, *other, k_x:, k_y: 42, **k_other, &b|}
prc.parameters #=> x], [:opt, :y], [:rest, :other], [:keyreq, :k_x], [:key, :k_y], [:keyrest, :k_other], [:block, :b
//}


@see Method#parameters, UnboundMethod#parameters...
<< < 1 2 3 >>