658件ヒット
[101-200件を表示]
(0.071秒)
ライブラリ
- ビルトイン (280)
- date (72)
- openssl (48)
- prime (108)
-
racc
/ parser (12) -
rexml
/ document (60) -
rexml
/ parsers / pullparser (24) - socket (12)
- thwait (6)
- zlib (36)
クラス
- BasicSocket (12)
- Date (72)
-
Encoding
:: Converter (12) - Enumerator (72)
- Float (22)
- Integer (36)
- LocalJumpError (12)
- Object (30)
-
OpenSSL
:: OCSP :: BasicResponse (24) -
OpenSSL
:: X509 :: CRL (24) -
Prime
:: EratosthenesGenerator (36) -
Prime
:: Generator23 (24) -
Prime
:: PseudoPrimeGenerator (24) -
Prime
:: TrialDivisionGenerator (24) -
REXML
:: Child (36) -
REXML
:: Element (12) -
REXML
:: Parsers :: PullParser (24) -
Racc
:: Parser (12) -
RubyVM
:: InstructionSequence (12) - StopIteration (12)
- String (48)
- Symbol (24)
- ThreadsWait (6)
-
Zlib
:: Inflate (12) -
Zlib
:: ZStream (24)
モジュール
-
REXML
:: Node (12)
キーワード
- << (12)
- >> (12)
-
add
_ status (12) - empty? (12)
- feed (12)
-
flush
_ next _ in (12) -
flush
_ next _ out (12) - getpeereid (12)
-
has
_ next? (12) - next! (12)
-
next
_ day (12) -
next
_ element (12) -
next
_ float (11) -
next
_ month (12) -
next
_ sibling (12) -
next
_ sibling= (12) -
next
_ sibling _ node (12) -
next
_ token (12) -
next
_ update (12) -
next
_ update= (12) -
next
_ values (12) -
next
_ wait (6) -
next
_ year (12) - peek (12)
-
peek
_ values (12) - pred (12)
-
prev
_ float (11) -
previous
_ sibling= (12) -
primitive
_ errinfo (12) - reason (12)
- result (12)
- rewind (24)
- status (12)
- succ (96)
- succ! (12)
- then (14)
-
to
_ a (12) -
yield
_ self (16)
検索結果
先頭5件
-
String
# next -> String (18102.0) -
self の「次の」文字列を返します。
self の「次の」文字列を返します。
「次の」文字列は、対象の文字列の右端から
アルファベットなら アルファベット順(aの次はb, zの次はa, 大文字も同様)に、
数字なら 10 進数(9 の次は 0)とみなして計算されます。
//emlist[][ruby]{
p "aa".succ # => "ab"
p "88".succ.succ # => "90"
//}
"99" → "100", "AZZ" → "BAA" のような繰り上げも行われます。
このとき負符号などは考慮されません。
//emlist[][ruby]{
p "99".succ # =>... -
Enumerator
# next _ values -> Array (6204.0) -
「次」のオブジェクトを配列で返します。
...を配列で返します。
Enumerator#next とほぼ同様の挙動をします。終端まで到達した場合は
StopIteration 例外を発生させます。
このメソッドは、
yield
と
yield nil
を区別するために使えます。
next メソッドによる外部列挙の状......list[例: next と next_values の違いを][ruby]{
o = Object.new
def o.each
yield
yield 1
yield 1, 2
yield nil
yield [1, 2]
end
e = o.to_enum
p e.next_values
p e.next_values
p e.next_values
p e.next_values
p e.next_values
e = o.to_enum
p e.next
p e.next
p e.next
p e.next
p e.next
## yie......ld args next_values next
# yield [] nil
# yield 1 [1] 1
# yield 1, 2 [1, 2] [1, 2]
# yield nil [nil] nil
# yield [1, 2] [[1, 2]] [1, 2]
//}
@raise StopIteration 列挙状態が既に最後... -
Float
# next _ float -> Float (6162.0) -
浮動小数点数で表現可能な self の次の値を返します。
....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.00000000000001
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-7 0.0100000000000000... -
Date
# next _ year(n = 1) -> Date (6120.0) -
n 年後を返します。
...n * 12) に相当します。
//emlist[例][ruby]{
require 'date'
Date.new(2001,2,3).next_year #=> #<Date: 2002-02-03 ...>
Date.new(2008,2,29).next_year #=> #<Date: 2009-02-28 ...>
Date.new(2008,2,29).next_year(4) #=> #<Date: 2012-02-29 ...>
//}
Date#>> も参照してください。
@p... -
REXML
:: Child # next _ sibling -> REXML :: Node (6114.0) -
次の隣接ノードを返します。
...次の隣接ノードを返します。
REXML::Node#next_sibling_node の別名です。
@see REXML::Child#next_sibling=... -
REXML
:: Element # next _ element -> Element | nil (6114.0) -
次の兄弟要素を返します。
...次の兄弟要素を返します。
次の要素が存在しない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b/>text<c/></a>'
doc.root.elements['b'].next_element # => <c/>
doc.root.elements['c'].next_element # => nil
//}... -
OpenSSL
:: X509 :: CRL # next _ update=(time) (6108.0) -
CRL の次回更新日時を Time オブジェクトで設定します。
...CRL の次回更新日時を Time オブジェクトで設定します。
@param time 最終更新日時
@raise OpenSSL::X509::CRLError 設定に失敗した場合に発生します
@see OpenSSL::X509::CRL#next_update... -
REXML
:: Child # next _ sibling=(other) (6108.0) -
other を self の次の隣接ノードとします。
...ther を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d
p a.to_s # => "<a><d/><b/><c/></a>"
//}... -
ThreadsWait
# next _ wait(nonblock = nil) -> Thread (6108.0) -
指定したスレッドのどれかが終了するまで待ちます。
...rue でかつ、キューが空の時、発生します。
#使用例
require 'thwait'
threads = []
2.times {|i|
threads << Thread.new { sleep i }
}
thall = ThreadsWait.new
thall.join_nowait(*threads)
until thall.empty?
th = thall.next_wait
p th
end
@see Queue#pop... -
Date
# next _ day(n = 1) -> Date (6102.0) -
n 日後を返します。
n 日後を返します。
Date#succ も参照してください。
@param n 日数