るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

モジュール

キーワード

検索結果

Enumerator::Lazy#lazy -> self (29155.0)

self を返します。

...self を返します。

//emlist[例][ruby]{
lazy
= (100..Float::INFINITY).lazy
p lazy.lazy # => #<Enumerator::Lazy: 100..Infinity>
p lazy == lazy.lazy # => true
//}...

Enumerator::Lazy#chunk {|elt| ... } -> Enumerator::Lazy (11148.0)

Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。

...numerator::Lazy を返します。

//emlist[例][ruby]{
1.step.lazy.chunk{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007f8bf18118f0>:each>>

1.step.lazy.chunk{ |n| n % 3 == 0 }.take(5).force
# => [[false, [1, 2]], [true, [3]], [false, [4, 5]], [true, [6]], [f...

Enumerator::Lazy#chunk(initial_state) {|elt, state| ... } -> Enumerator::Lazy (11148.0)

Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。

...numerator::Lazy を返します。

//emlist[例][ruby]{
1.step.lazy.chunk{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007f8bf18118f0>:each>>

1.step.lazy.chunk{ |n| n % 3 == 0 }.take(5).force
# => [[false, [1, 2]], [true, [3]], [false, [4, 5]], [true, [6]], [f...

GC#garbage_collect(full_mark: true, immediate_sweep: true) -> nil (8220.0)

ガーベージコレクトを開始します。

...場合は false を、そうでない場
合は true を指定します。

@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。

注意: これらのキーワード引数...

GC.start(full_mark: true, immediate_sweep: true) -> nil (8220.0)

ガーベージコレクトを開始します。

...場合は false を、そうでない場
合は true を指定します。

@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。

注意: これらのキーワード引数...

絞り込み条件を変える

ObjectSpace.#garbage_collect(full_mark: true, immediate_sweep: true) -> nil (8220.0)

どこからも参照されなくなったオブジェクトを回収します。 GC.start と同じです。

...場合は false を、そうでない場
合は true を指定します。

@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。

注意: これらのキーワード引数...

GC.stress=(value) (8018.0)

GCのストレスモードを引数 value に設定します。 引数 value が真に設定されている間は、GC を行えるすべての機会に GC を行います。

...合に指定します。
: 0x02
sweep を遅らせる(Lazy Sweep を行う)に指定します。
: 0x04
malloc/calloc/realloc の後でメジャーGCを動作させる場合に指定します。

//emlist[例][ruby]{
GC.stress # => false
GC.stress = true
GC.stress # => true
//}

@see GC.stress...