るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.073秒)

別のキーワード

  1. << rexml::attribute#name
  2. handle_interrupt thread#raise
  3. simplerenewer rinda::tuplespace#renewer
  4. add rexml::attribute#name
  5. service drb::extserv#stop_service

ライブラリ

検索結果

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

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

...y]{
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_object_allocations...