るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.074秒)
トップページ > クエリ:Ruby[x] > 種類:インスタンスメソッド[x] > クエリ:i[x] > クエリ:eval[x] > クラス:Proc[x] > クエリ:binding[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. kernel $-i
  5. _builtin i

ライブラリ

検索結果

Proc#binding -> Binding (30638.0)

Proc オブジェクトが保持するコンテキストを Binding オブジェクトで返します。

...
Proc
オブジェクトが保持するコンテキストを
Binding
オブジェクトで返します。

//emlist[例][ruby]{
def fred(param)
proc
{}
end

sample_proc = fred(99)
eval
("param", sample_proc.binding) # => 99
//}...