るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.112秒)
トップページ > クエリ:string[x] > クエリ:Ruby[x] > 種類:モジュール関数[x] > クエリ:ruby[x] > ライブラリ:objspace[x] > モジュール:ObjectSpace[x] > クエリ:allocation_sourcefile[x]

別のキーワード

  1. fiddle ruby_free
  2. fiddle build_ruby_platform
  3. rbconfig ruby
  4. rake ruby
  5. rubygems/defaults ruby_engine

検索結果

ObjectSpace.#allocation_sourcefile(object) -> String (18224.0)

objectの元となったソースファイル名を返します。

...た場合][ruby]{
require 'objspace'

ObjectSpace
::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace
::trace_object_allocations_stop
//}

@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace
.#trace_obje...