361件ヒット
[1-100件を表示]
(0.078秒)
クラス
- Date (72)
- Enumerator (72)
- Float (22)
- Object (15)
-
OpenSSL
:: OCSP :: BasicResponse (24) -
OpenSSL
:: X509 :: CRL (24) -
Prime
:: EratosthenesGenerator (36) -
Prime
:: Generator23 (24) -
Prime
:: PseudoPrimeGenerator (24) -
Prime
:: TrialDivisionGenerator (24) - StopIteration (12)
-
Zlib
:: Inflate (12)
キーワード
- << (12)
- >> (12)
-
add
_ status (12) - feed (12)
-
next
_ day (12) -
next
_ float (11) -
next
_ month (12) -
next
_ update (12) -
next
_ update= (12) -
next
_ values (12) -
next
_ year (12) - peek (12)
-
peek
_ values (12) -
prev
_ float (11) - result (12)
- rewind (24)
- status (12)
- succ (60)
- then (7)
-
yield
_ self (8)
検索結果
先頭5件
-
Prime
:: EratosthenesGenerator # next -> Integer (24120.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
//}... -
Date
# next -> Date (21202.0) -
翌日の日付オブジェクトを返します。
翌日の日付オブジェクトを返します。 -
Enumerator
# next -> object (21150.0) -
「次」のオブジェクトを返します。
...す。
列挙が既に最後へ到達している場合は、
StopIteration 例外を発生します。このとき列挙状態は変化しません。
つまりもう一度 next を呼ぶと再び例外が発生します。
next メソッドによる外部列挙の状態は他のイテレータメ......る場合には影響があり得ます。
@raise StopIteration 列挙状態が既に最後へ到達しているとき
@see Enumerator#rewind
//emlist[例1][ruby]{
str = "xyz"
enum = str.each_byte
str.bytesize.times do
puts enum.next
end
# => 120
# 121
# 122
//}
//emlist[例2......yte
begin
puts enum.next while true
rescue StopIteration
puts "iteration reached at end"
end
# => 120
# 121
# 122
# iteration reached at end
puts enum.next
#=> 再度 StopIteration 例外が発生
//}
//emlist[例3: Kernel.#loop は StopIteration を捕捉します... -
Prime
:: Generator23 # next -> Integer (21102.0) -
次の擬似素数を返します。
次の擬似素数を返します。
また内部的な列挙位置を進めます。 -
Prime
:: PseudoPrimeGenerator # next -> () (21102.0) -
次の擬似素数を返します。 また内部的な位置を進めます。
次の擬似素数を返します。
また内部的な位置を進めます。
サブクラスで実装してください。
@raise NotImplementedError 必ず発生します。 -
Prime
:: TrialDivisionGenerator # next -> Integer (21102.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。 -
Float
# next _ float -> Float (15362.0) -
浮動小数点数で表現可能な self の次の値を返します。
...ます。
Float::MAX.next_float、Float::INFINITY.next_float は
Float::INFINITY を返します。Float::NAN.next_float は
Float::NAN を返します。
//emlist[例][ruby]{
p 0.01.next_float # => 0.010000000000000002
p 1.0.next_float # => 1.0000000000000002
p 100.0.next_float # => 100.000000......00000001
p 0.01.next_float - 0.01 # => 1.734723475976807e-18
p 1.0.next_float - 1.0 # => 2.220446049250313e-16
p 100.0.next_float - 100.0 # => 1.4210854715202004e-14
f = 0.01; 20.times { printf "%-20a %s\n", f, f.to_s; f = f.next_float }
# => 0x1.47ae147ae147bp-7 0.01
# 0x1.47ae147ae147cp......47ae147ae1489p-7 0.010000000000000024
# 0x1.47ae147ae148ap-7 0.010000000000000026
# 0x1.47ae147ae148bp-7 0.010000000000000028
# 0x1.47ae147ae148cp-7 0.01000000000000003
# 0x1.47ae147ae148dp-7 0.010000000000000031
# 0x1.47ae147ae148ep-7 0.010000000000000033
//}
@see Float#prev_float... -
OpenSSL
:: X509 :: CRL # next _ update=(time) (12208.0) -
CRL の次回更新日時を Time オブジェクトで設定します。
...CRL の次回更新日時を Time オブジェクトで設定します。
@param time 最終更新日時
@raise OpenSSL::X509::CRLError 設定に失敗した場合に発生します
@see OpenSSL::X509::CRL#next_update... -
OpenSSL
:: X509 :: CRL # next _ update -> Time (12202.0) -
CRL の次回更新日時を Time オブジェクトで返します。
CRL の次回更新日時を Time オブジェクトで返します。