590件ヒット
[101-200件を表示]
(0.150秒)
ライブラリ
- ビルトイン (254)
- date (66)
- openssl (44)
- prime (99)
-
racc
/ parser (11) -
rexml
/ document (55) -
rexml
/ parsers / pullparser (11) - socket (11)
- thwait (6)
- zlib (33)
クラス
- BasicSocket (11)
- Date (66)
-
Encoding
:: Converter (11) - Enumerator (66)
- Float (20)
- Integer (33)
- LocalJumpError (11)
- Object (25)
-
OpenSSL
:: OCSP :: BasicResponse (22) -
OpenSSL
:: X509 :: CRL (22) -
Prime
:: EratosthenesGenerator (33) -
Prime
:: Generator23 (22) -
Prime
:: PseudoPrimeGenerator (22) -
Prime
:: TrialDivisionGenerator (22) -
REXML
:: Child (33) -
REXML
:: Element (11) -
REXML
:: Parsers :: PullParser (11) -
Racc
:: Parser (11) -
RubyVM
:: InstructionSequence (11) - StopIteration (11)
- String (44)
- Symbol (22)
- ThreadsWait (6)
-
Zlib
:: Inflate (11) -
Zlib
:: ZStream (22)
モジュール
-
REXML
:: Node (11)
キーワード
- << (11)
- >> (11)
-
add
_ status (11) - feed (11)
-
flush
_ next _ in (11) -
flush
_ next _ out (11) - getpeereid (11)
-
has
_ next? (11) - next! (11)
-
next
_ day (11) -
next
_ element (11) -
next
_ float (10) -
next
_ month (11) -
next
_ sibling (11) -
next
_ sibling= (11) -
next
_ sibling _ node (11) -
next
_ token (11) -
next
_ update (11) -
next
_ update= (11) -
next
_ values (11) -
next
_ wait (6) -
next
_ year (11) - peek (11)
-
peek
_ values (11) - pred (11)
-
prev
_ float (10) -
previous
_ sibling= (11) -
primitive
_ errinfo (11) - reason (11)
- result (11)
- rewind (22)
- status (11)
- succ (88)
- succ! (11)
- then (12)
-
to
_ a (11) -
yield
_ self (13)
検索結果
先頭5件
-
REXML
:: Element # next _ element -> Element | nil (15214.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
//}... -
REXML
:: Node # next _ sibling _ node -> REXML :: Node | nil (15202.0) -
次の兄弟ノードを返します。
...次の兄弟ノードを返します。
次の兄弟ノードが存在しない場合(ノードがルートである場合や、
最後のノードである場合)は nil を返します。... -
Enumerator
# next _ values -> Array (12304.0) -
「次」のオブジェクトを配列で返します。
...クトを配列で返します。
Enumerator#next とほぼ同様の挙動をします。終端まで到達した場合は
StopIteration 例外を発生させます。
このメソッドは、
yield
と
yield nil
を区別するために使えます。
next メソッドによる外部列挙......ach_line のようにおおもとの列挙メカニズムが副作用を
伴っている場合には影響があり得ます。
//emlist[例: 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_valu......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
## yield args next_values next
# yield [] nil
# yield 1 [1] 1
# yield 1, 2 [1, 2] [1, 2]
# yield nil... -
Float
# next _ float -> Float (12268.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 (12249.0) -
n 年後を返します。
...n 年後を返します。
self >> (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#......>> も参照してください。
@param n 年数... -
Date
# next _ day(n = 1) -> Date (12225.0) -
n 日後を返します。
...n 日後を返します。
Date#succ も参照してください。
@param n 日数... -
Date
# next _ month(n = 1) -> Date (12225.0) -
n ヶ月後を返します。
...n ヶ月後を返します。
Date#>> も参照してください。
@param n 月数... -
REXML
:: Child # next _ sibling -> REXML :: Node (12214.0) -
次の隣接ノードを返します。
...次の隣接ノードを返します。
REXML::Node#next_sibling_node の別名です。
@see REXML::Child#next_sibling=... -
OpenSSL
:: X509 :: CRL # next _ update=(time) (12208.0) -
CRL の次回更新日時を Time オブジェクトで設定します。
...CRL の次回更新日時を Time オブジェクトで設定します。
@param time 最終更新日時
@raise OpenSSL::X509::CRLError 設定に失敗した場合に発生します
@see OpenSSL::X509::CRL#next_update... -
REXML
:: Child # next _ sibling=(other) (12208.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>"
//}...