るりまサーチ

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

別のキーワード

  1. psych psych_y
  2. kernel y
  3. psych y
  4. kernel psych_y
  5. y kernel

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

OpenSSL::PKey::EC::Group#generator -> OpenSSL::PKey::EC::Point (21202.0)

群の生成元を返します。

群の生成元を返します。

OpenSSL::PKey::EC::Group#set_generator(generator, order, cofactor) -> self (9209.0)

群のパラメータを設定します。

...のパラメータを設定します。

@param generator 生成元(OpenSSL::PKey::EC::Point オブジェクト)
@param order 生成元の位数(OpenSSL::BN オブジェクト)
@param cofactor 余因子OpenSSL::BN オブジェクト
@raise OpenSSL::PKey::EC::Group::Error 設定に失敗した場合...

JSON::Generator::GeneratorMethods::Array#to_json(state_or_hash = nil) -> String (9001.0)

自身から生成した JSON 形式の文字列を返します。

...N 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。

//emlist[例][ruby]{
require "json"

[1, 2, 3].to_json # => "[1,2,3]"
//}...

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

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

...chunk と同じですが、配列ではなく Enumerator::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]]...

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

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

...chunk と同じですが、配列ではなく Enumerator::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]]...

絞り込み条件を変える

Enumerator::Lazy#slice_after {|elt| bool } -> Enumerator::Lazy (3107.0)

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

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

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

1.step.lazy.slice_after { |e| e % 3 == 0 }.take(5).force
# => [[1, 2...

Enumerator::Lazy#slice_after(pattern) -> Enumerator::Lazy (3107.0)

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

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

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

1.step.lazy.slice_after { |e| e % 3 == 0 }.take(5).force
# => [[1, 2...

Enumerator::Lazy#slice_before {|elt| bool } -> Enumerator::Lazy (3107.0)

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

...e と同じですが、配列ではなく 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 }.take(5).force
# => [[1,...

Enumerator::Lazy#slice_before(initial_state) {|elt, state| bool } -> Enumerator::Lazy (3107.0)

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

...e と同じですが、配列ではなく 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 }.take(5).force
# => [[1,...
<< 1 2 > >>