74件ヒット
[1-74件を表示]
(0.142秒)
別のキーワード
クラス
-
Benchmark
:: Job (11) -
Benchmark
:: Report (22) -
RubyVM
:: InstructionSequence (11) - UncaughtThrowError (30)
検索結果
先頭5件
-
Benchmark
:: Report # report(label = "" , *fmt) { . . . } -> Benchmark :: Tms (6209.0) -
ラベルと与えられたブロックの実行時間を標準出力に出力します。
...ラベルと与えられたブロックの実行時間を標準出力に出力します。
出力のフォーマットは Benchmark::Tms#format が行います。
@param label ラベル
@param fmt 結果に出力したいオブジェクト
@see Benchmark::Tms#format... -
RubyVM
:: InstructionSequence # inspect -> String (6107.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
Benchmark
:: Job # report(label = "") { . . . } -> self (3209.0) -
与えられたラベルとブロックをジョブリストに登録します。
...与えられたラベルとブロックをジョブリストに登録します。
@param label ラベル... -
Benchmark
:: Report # item(label = "" , *fmt) { . . . } -> Benchmark :: Tms (3109.0) -
ラベルと与えられたブロックの実行時間を標準出力に出力します。
...ラベルと与えられたブロックの実行時間を標準出力に出力します。
出力のフォーマットは Benchmark::Tms#format が行います。
@param label ラベル
@param fmt 結果に出力したいオブジェクト
@see Benchmark::Tms#format... -
UncaughtThrowError
# tag -> object (19.0) -
Kernel.#throw に指定した tag を返します。
...Kernel.#throw に指定した tag を返します。
//emlist[例:][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.tag # => ":uncaught_label"
end
//}... -
UncaughtThrowError
# to _ s -> String (19.0) -
self を tag を含む文字列表現にして返します。
...self を tag を含む文字列表現にして返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.to_s # => "uncaught throw :uncaught_label"
end
//}... -
UncaughtThrowError
# value -> object (13.0) -
Kernel.#throw に指定した value を返します。
...Kernel.#throw に指定した value を返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label, "uncaught_value"
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.value # => "uncaught_value"
end
//}...