436件ヒット
[1-100件を表示]
(0.061秒)
別のキーワード
ライブラリ
- ビルトイン (339)
- matrix (24)
-
minitest
/ unit (1) -
net
/ http (12) - optparse (12)
- rake (12)
- tracer (24)
-
webrick
/ httpresponse (12)
クラス
- Exception (36)
- Fiber (6)
- Matrix (24)
-
Net
:: HTTP (12) - Object (12)
-
OptionParser
:: ParseError (12) -
Rake
:: Application (12) - Thread (36)
-
Thread
:: Backtrace :: Location (36) - TracePoint (213)
- Tracer (24)
-
WEBrick
:: HTTPResponse (12)
モジュール
キーワード
-
absolute
_ path (12) -
add
_ filter (12) -
add
_ trace _ func (12) - backtrace (12)
-
backtrace
_ locations (12) - binding (12)
-
callee
_ id (12) -
defined
_ class (12) - disable (24)
- enable (24)
- enabled? (12)
-
eval
_ script (7) - event (12)
- freeze (12)
- inspect (24)
-
instruction
_ sequence (7) - lineno (12)
-
method
_ id (12) - parameters (7)
- path (24)
- raise (18)
-
raised
_ exception (12) -
return
_ value (12) - self (12)
-
set
_ backtrace (24) -
set
_ error (12) -
set
_ get _ line _ procs (12) -
set
_ trace _ func (12) - skip (1)
- tr (12)
検索結果
先頭5件
-
Net
:: HTTP # trace(path , initheader = nil) -> Net :: HTTPResponse (21224.0) -
サーバの path に TRACE リクエストを ヘッダを initheader として送ります。
...サーバの path に TRACE リクエストを
ヘッダを initheader として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「......文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Trace... -
Matrix
# trace -> Integer | Float | Rational | Complex (15236.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
TracePoint
# raised _ exception -> Exception (9213.0) -
発生した例外を返します。
...eError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。
//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
trace.enable
begin
0/0
rescue
end
//}... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (9207.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...バックトレース情報を返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require......et_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Tracer
# set _ get _ line _ procs(file , p = proc) (9202.0) -
@todo
@todo -
TracePoint
# inspect -> String (9119.0) -
self の状態を人間に読みやすい文字列にして返します。
...self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}... -
TracePoint
# path -> String (9119.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
Exception
# backtrace -> [String] (9107.0) -
バックトレース情報を返します。
...)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)
という形式の String の配列です。
//emlist[例][ruby]{
def methd
raise
end
begin
methd
rescue => e
p e.backtrace
end
#=> ["filename.rb:2:in `methd'", "filename.rb:6"]
//}
@see Exception#backtrace_locations... -
TracePoint
# eval _ script -> String | nil (9107.0) -
script_compiledイベント発生時にコンパイルされたソースコードを返します。 ファイルから読み込んだ場合は、nilを返します。
...script_compiledイベント発生時にコンパイルされたソースコードを返します。
ファイルから読み込んだ場合は、nilを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.eval_script # => "puts 'hello'"
end.enable do
eval("puts 'he......llo'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。...