323件ヒット
[301-323件を表示]
(0.090秒)
別のキーワード
ライブラリ
- ビルトイン (167)
- bigdecimal (12)
-
json
/ add / exception (12) -
net
/ http (12) -
rake
/ rdoctask (12) - rss (48)
クラス
- BigDecimal (12)
- Bignum (3)
-
CGI
:: Cookie (24) - Exception (32)
- Integer (12)
- Module (12)
- NameError (12)
- NoMethodError (12)
-
RDoc
:: Options (24) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (24) -
RSS
:: Rss :: Channel :: Item :: Category (24) -
Rake
:: RDocTask (12) -
RubyVM
:: InstructionSequence (24) - Thread (36)
-
Thread
:: Backtrace :: Location (36) -
WEBrick
:: Cookie (12)
モジュール
-
Net
:: HTTPHeader (12)
キーワード
- args (12)
-
backtrace
_ locations (24) -
base
_ label (24) - domain (48)
- domain= (36)
- inspect (12)
- label (12)
-
main
_ page (12) -
main
_ page= (12) -
main
_ type (12) - raise (12)
- remainder (27)
-
set
_ backtrace (12) -
to
_ json (12) -
to
_ s (24) - using (12)
検索結果
-
Thread
:: Backtrace :: Location # inspect -> String (107.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
...][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'"
# "path/to/foo.rb:9:in `new'"
# "path/to/foo.rb:9:in `<main>'"
//}... -
Thread
:: Backtrace :: Location # to _ s -> String (107.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...mlist[例][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'
# path/to/foo.rb:9:in `new'
# path/to/foo.rb:9:in `<main>'
//}...