るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.134秒)
トップページ > クエリ:t[x] > クエリ:String[x] > クエリ:method[x] > クラス:Proc[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

ライブラリ

検索結果

Proc#source_location -> [String, Integer] | nil (6214.0)

ソースコードのファイル名と行番号を配列で返します。

...emlist[例][ruby]{
# /path/to/target.rb を実行
proc
{}.source_location # => ["/path/to/target.rb", 1]
proc
{}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method
(:p).to_proc.source_location # => nil
//}

@see Method#sou...
...rce_location...