るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.030秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:map[x] > バージョン:2.3.0[x] > クエリ:base_label[x]

別のキーワード

  1. base digest
  2. _builtin base_label
  3. base file
  4. base ==
  5. base64 encode64

検索結果

Thread::Backtrace::Location#base_label -> String (54346.0)

self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。

self が表すフレームの基本ラベルを返します。通常、
Thread::Backtrace::Location#label から修飾を取り除いたもので構成
されます。

//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.base_label
end

# => init...