るりまサーチ

最速Rubyリファレンスマニュアル検索!
203件ヒット [1-100件を表示] (0.169秒)

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

検索結果

<< 1 2 3 > >>

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をステートレスに扱うための方式です。
E
macs-Mule エンコーディングを元にしています。...

Encoding::STATELESS_ISO_2022_JP_KDDI -> Encoding (20202.0)

stateless-ISO-2022-JP-KDDI エンコーディングです。

...stateless-ISO-2022-JP-KDDI エンコーディングです。

state
less-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をステートレスに扱うための方式です。
E
macs-Mule エンコーディングを元にしています。...

絞り込み条件を変える

Encoding::Stateless_ISO_2022_JP_KDDI -> Encoding (20202.0)

stateless-ISO-2022-JP-KDDI エンコーディングです。

...stateless-ISO-2022-JP-KDDI エンコーディングです。

state
less-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 を返します。

...
E
numerable#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
//...

絞り込み条件を変える

<< 1 2 3 > >>