クラス
- Array (12)
-
Encoding
:: Converter (72) - Exception (32)
- Hash (24)
- IO (48)
- Integer (4)
- Module (12)
- Regexp (48)
-
RubyVM
:: InstructionSequence (116) - SignalException (36)
- String (12)
- Thread (66)
-
Thread
:: ConditionVariable (10) - Time (127)
モジュール
- GC (6)
オブジェクト
- ENV (12)
キーワード
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
asciicompat
_ encoding (24) - at (15)
- binread (12)
- clone (12)
- compile (24)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - constants (12)
- disasm (12)
- disassemble (12)
- exception (12)
- gm (24)
-
handle
_ interrupt (12) -
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - local (24)
- mktime (24)
- new (146)
- of (12)
-
pending
_ interrupt? (12) -
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
search
_ convpath (12) -
to
_ tty? (8) -
try
_ convert (64) - union (12)
- utc (24)
-
verify
_ compaction _ references (6) - write (24)
検索結果
先頭5件
-
Thread
. abort _ on _ exception -> bool (12223.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。
...ad#exceptionを参照してください。
@param newstate スレッド実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。
//emlist[例][ruby]{
Thread.abort_on_exception # => false
Thread.abort_on_exception = true
Th......read.abort_on_exception # => true
//}... -
Thread
. abort _ on _ exception=(newstate) (12223.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。
...ad#exceptionを参照してください。
@param newstate スレッド実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。
//emlist[例][ruby]{
Thread.abort_on_exception # => false
Thread.abort_on_exception = true
Th......read.abort_on_exception # => true
//}... -
Thread
. report _ on _ exception -> bool (12223.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...e です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'
これに......oin や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しかし、この場合、例外をハンドルするのが遅れたり、親......いて
終了を待つことができなかったりするかもしれません。
スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを... -
Thread
. report _ on _ exception=(newstate) (12223.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...e です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: from -e:1:in `times'
これに......oin や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しかし、この場合、例外をハンドルするのが遅れたり、親......いて
終了を待つことができなかったりするかもしれません。
スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを... -
Encoding
:: Converter . search _ convpath(source _ encoding , destination _ encoding , options) -> Array (9303.0) -
引数で指定した文字エンコーディングの変換の経路を配列にして返します。
...nation_encoding 変換先の文字エンコーディングを
Encoding オブジェクトか文字列で指定し
ます。
@param options 変換の詳細を指定する定数やハッシュを指定します。
Encoding::Conver......p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP")
# => [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>]]
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", universal_newline: true)
# or
p Encoding::Converter.search_convpath("ISO-885......-8>],
# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>],
# "universal_newline"]
p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", universal_newline: true)
# or
p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", newline: :universal)
# => [[#<Encoding:ISO-8859-1>, #<Encodin... -
Exception
. exception(error _ message = nil) -> Exception (9203.0) -
例外オブジェクトを生成して返します。
...属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = Exception.exception("some message......")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
RubyVM
:: InstructionSequence . compile _ option=(options) (9203.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。
...命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数
options で指定します。
@param options コンパイル時の最適化オプションを true、false、nil、
Hash のいずれかで指定します。true を指定した場合は......、無効を指定します。
//emlist{
* :inline_const_cache
* :instructions_unification
* :operands_unification
* :peephole_optimization
* :specialized_instruction
* :stack_caching
* :tailcall_optimization
* :trace_instruction
//}
:debug_level をキーに指定し......compile、.compile_file メソッドの実行の際に option 引数を指定し
た場合はその実行のみ最適化オプションを変更する事もできます。
@see RubyVM::InstructionSequence.new,
RubyVM::InstructionSequence.compile,
RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (9103.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...byVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :fro......zen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=... -
Thread
:: ConditionVariable . new -> Thread :: ConditionVariable (6203.0) -
状態変数を生成して返します。
状態変数を生成して返します。