622件ヒット
[601-622件を表示]
(0.047秒)
別のキーワード
クラス
- Array (96)
-
Enumerator
:: Lazy (124) - Exception (12)
- Hash (24)
- Object (60)
-
ObjectSpace
:: WeakMap (12) - Set (6)
-
Thread
:: Backtrace :: Location (48)
モジュール
- Enumerable (240)
キーワード
- == (12)
- []= (12)
-
absolute
_ path (12) -
base
_ label (12) -
chunk
_ while (12) - collect (60)
- collect! (27)
-
collect
_ concat (36) -
enum
_ for (48) -
filter
_ map (18) -
flat
_ map (36) - grep (12)
-
grep
_ v (10) - inspect (12)
- lazy (12)
- map! (27)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) -
sort
_ by (24) - sum (24)
- tap (12)
-
to
_ enum (48) -
to
_ h (14) -
to
_ proc (10) -
to
_ s (12)
検索結果
-
Thread
:: Backtrace :: Location # inspect -> String (21.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
...字列に変換したオブジェクトを返します。
//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.inspect
end
# => "path/to/foo.rb:5:in `initialize... -
Thread
:: Backtrace :: Location # to _ s -> String (21.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...ller と同じ表現にした文字列を返し
ます。
//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.to_s
end
# => path/to/foo.rb:5:in `initialize'
#...