るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. pop n_bytes
  5. openssl n

検索結果

<< 1 2 3 ... > >>

Prime::EratosthenesGenerator#next -> Integer (30220.0)

次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。

...いては擬似素数は真に素数です。

また内部的な列挙位置を進めます。

//emlist[例][ruby]{
require 'prime'
generator = Prime::EratosthenesGenerator.new
p generator.next #=> 2
p generator.next #=> 3
p generator.succ #=> 5
p generator.succ #=> 7
p generator.next #=> 11
//}...

Prime::Generator23#next -> Integer (27202.0)

次の擬似素数を返します。

次の擬似素数を返します。

また内部的な列挙位置を進めます。

Prime::PseudoPrimeGenerator#next -> () (27202.0)

次の擬似素数を返します。 また内部的な位置を進めます。

...次の擬似素数を返します。
また内部的な位置を進めます。

サブクラスで実装してください。

@raise NotImplementedError 必ず発生します。...

Enumerator#next -> object (24238.0)

「次」のオブジェクトを返します。

...
列挙が既に最後へ到達している場合は、
StopIteration 例外を発生します。このとき列挙状態は変化しません。
つまりもう一度 next を呼ぶと再び例外が発生します。

next
メソッドによる外部列挙の状態は他のイテレータメソ...
...だし、 IO#each_line のようにおおもとの列挙メカニズムが副作用を
伴っている場合には影響があり得ます。

@raise StopIteration 列挙状態が既に最後へ到達しているとき
@see Enumerator#rewind

//emlist[例1][ruby]{
str = "xyz"
enum = str.each_byte

s...
...ts enum.next
end
# => 120
# 121
# 122
//}

//emlist[例2][ruby]{
str = "xyz"
enum = str.each_byte

begin
puts enum.next while true
rescue StopIteration
puts "iteration reached at end"
end
# => 120
# 121
# 122
# iteration reached at end
puts enum.next...

Symbol#next -> Symbol (24220.0)

シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。

...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。

(self.to_s.next.intern と同じです。)

:a.next # => :b
:foo.next # => :fop

@see String#succ...

絞り込み条件を変える

Integer#next -> Integer (24214.0)

self の次の整数を返します。

...self の次の整数を返します。

//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}

@see Integer#pred...

Date#next -> Date (24202.0)

翌日の日付オブジェクトを返します。

翌日の日付オブジェクトを返します。

Prime::TrialDivisionGenerator#next -> Integer (24202.0)

次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。

次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。

また内部的な列挙位置を進めます。

String#next -> String (24202.0)

self の「次の」文字列を返します。

...10"

# アルファベット・数字とそれ以外の混在
p "1.9.9".succ # => # "2.0.0"

# アルファベット・数字以外のみ
p ".".succ # => "/"
p "\0".succ # => "\001"
p "\377".succ # => "\001\000"
//}

このメソッドは文字列の Range の内部で使用されます。...
<< 1 2 3 ... > >>