630件ヒット
[601-630件を表示]
(0.070秒)
ライブラリ
- ビルトイン (258)
- bigdecimal (12)
-
irb
/ cmd / help (12) -
irb
/ cmd / subirb (12) -
irb
/ context (12) -
json
/ add / exception (12) - mkmf (72)
-
net
/ http (12) -
net
/ smtp (24) -
rake
/ rdoctask (36) - resolv (24)
- rss (72)
クラス
- BigDecimal (12)
- Bignum (3)
-
CGI
:: Cookie (24) - Exception (44)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: IrbCommand (12) - Integer (12)
- Module (36)
- NameError (24)
-
Net
:: SMTP (24) - NoMethodError (12)
- Numeric (12)
- Object (12)
-
RDoc
:: Options (24) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (24) -
RSS
:: Rss :: Channel :: Cloud (24) -
RSS
:: Rss :: Channel :: Item :: Category (24) -
Rake
:: RDocTask (36) -
Resolv
:: DNS :: Name (12) -
Resolv
:: DNS :: Resource :: DomainName (12) -
RubyVM
:: InstructionSequence (36) - Thread (36)
-
Thread
:: Backtrace :: Location (36) - TracePoint (7)
-
WEBrick
:: Cookie (24)
モジュール
- Kernel (72)
-
Net
:: HTTPHeader (12)
キーワード
- args (12)
- autoload (12)
-
backtrace
_ locations (36) -
base
_ label (24) - domain (60)
- domain= (60)
- ehlo (12)
- execute (24)
-
find
_ library (24) -
have
_ library (24) - helo (12)
- inspect (12)
-
instruction
_ sequence (7) - label (12)
- main= (12)
-
main
_ page (12) -
main
_ page= (12) -
main
_ type (12) - name (24)
- raise (12)
- refine (12)
- remainder (39)
-
respond
_ to? (12) -
set
_ backtrace (12) -
subdomain
_ of? (12) -
to
_ a (12) -
to
_ json (12) -
to
_ s (24) -
try
_ link (24) - using (12)
検索結果
先頭3件
-
Thread
:: Backtrace :: Location # inspect -> String (7.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 (7.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>'
//}... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (7.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("puts 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベ...