203件ヒット
[1-100件を表示]
(0.169秒)
種類
- インスタンスメソッド (107)
- 特異メソッド (52)
- 定数 (44)
クラス
- Encoding (44)
-
Encoding
:: Converter (11) -
Enumerator
:: Lazy (55) - IO (11)
- Random (22)
- Thread (38)
モジュール
- GC (22)
キーワード
-
STATELESS
_ ISO _ 2022 _ JP (11) -
STATELESS
_ ISO _ 2022 _ JP _ KDDI (11) -
Stateless
_ ISO _ 2022 _ JP (11) -
Stateless
_ ISO _ 2022 _ JP _ KDDI (11) -
abort
_ on _ exception= (22) - chunk (22)
-
insert
_ output (11) -
latest
_ gc _ info (22) -
report
_ on _ exception= (16) -
slice
_ before (33) - sync= (11)
検索結果
先頭5件
-
Random
# state -> Integer (32203.0) -
C言語レベルで定義されている構造体MTの状態を参照します。詳しくはrandom.c を参照してください。
C言語レベルで定義されている構造体MTの状態を参照します。詳しくはrandom.c を参照してください。 -
Random
. state -> Integer (32203.0) -
C言語レベルで定義されている構造体MTの静的変数default_randの状態を参照します。詳しくはrandom.c を参照してください。
...C言語レベルで定義されている構造体MTの静的変数default_randの状態を参照します。詳しくはrandom.c を参照してください。... -
Encoding
:: STATELESS _ ISO _ 2022 _ JP -> Encoding (20202.0) -
stateless-ISO-2022-JP エンコーディングです。
...stateless-ISO-2022-JP エンコーディングです。
ISO-2022-JPをステートレスに扱うための方式です。
Emacs-Mule エンコーディングを元にしています。... -
Encoding
:: STATELESS _ ISO _ 2022 _ JP _ KDDI -> Encoding (20202.0) -
stateless-ISO-2022-JP-KDDI エンコーディングです。
...stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP の亜種です。
KDDI の携帯電話で使われる絵文字が含まれています。
@see https://www.au.com/ezfactory/tec/spec/img/typeD.pdf... -
Encoding
:: Stateless _ ISO _ 2022 _ JP -> Encoding (20202.0) -
stateless-ISO-2022-JP エンコーディングです。
...stateless-ISO-2022-JP エンコーディングです。
ISO-2022-JPをステートレスに扱うための方式です。
Emacs-Mule エンコーディングを元にしています。... -
Encoding
:: Stateless _ ISO _ 2022 _ JP _ KDDI -> Encoding (20202.0) -
stateless-ISO-2022-JP-KDDI エンコーディングです。
...stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP の亜種です。
KDDI の携帯電話で使われる絵文字が含まれています。
@see https://www.au.com/ezfactory/tec/spec/img/typeD.pdf... -
Thread
. report _ on _ exception=(newstate) (17314.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...を $stderr に報告します。
デフォルトは false です。
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'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ......容を $stderr に報告します。
デフォルトは true です。
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 `blo......ck in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が... -
Thread
# report _ on _ exception=(newstate) (17302.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...tderr に報告します。
デフォルトはスレッド作成時の Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Threa......p; raise }
a.report_on_exception = true
a.report_on_exception # => true
a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x0......0007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run # => #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}
@see Thread.report_on_exception... -
Enumerator
:: Lazy # slice _ before(initial _ state) {|elt , state| bool } -> Enumerator :: Lazy (14328.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.slice_before { |e| e.even? }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007f9f31844ce8>:each>>
1.step.lazy.slice_before { |e| e % 3 == 0 }.t......ake(5).force
# => [[1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]]
//}
@see Enumerable#slice_before... -
GC
. latest _ gc _ info(result _ hash = {}) -> Hash (14208.0) -
最新のGCの情報を返します。
...の情報を返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。
@param key 得られる情報から特定の......。
//emlist[例][ruby]{
latest = GC.latest_gc_info
latest # => {:major_by=>nil, :gc_by=>:newobj, :have_finalizer=>false, :immediate_sweep=>false, :state=>:sweeping}
stat = GC.stat
merged = GC.latest_gc_info(stat)
merged == latest.merge(stat) # => true
GC.latest_gc_info(:gc_by) # => :newobj
//...