843件ヒット
[1-100件を表示]
(0.170秒)
ライブラリ
クラス
- BasicSocket (11)
- Date (66)
-
Encoding
:: Converter (11) - Enumerator (71)
-
Fiddle
:: Handle (33) - Float (20)
- Integer (33)
- LocalJumpError (11)
- Object (26)
-
OpenSSL
:: OCSP :: BasicResponse (22) -
OpenSSL
:: X509 :: CRL (11) -
Prime
:: EratosthenesGenerator (33) -
Prime
:: Generator23 (22) -
Prime
:: PseudoPrimeGenerator (22) -
Prime
:: TrialDivisionGenerator (22) -
REXML
:: Child (11) -
REXML
:: Element (11) -
REXML
:: Parsers :: PullParser (22) -
RubyVM
:: InstructionSequence (33) - Socket (22)
- StopIteration (11)
- String (44)
- Symbol (22)
- ThreadsWait (6)
-
Zlib
:: Inflate (11) -
Zlib
:: ZStream (22)
モジュール
- Find (22)
- Kernel (53)
-
OpenSSL
:: X509 (11) - Psych (25)
-
REXML
:: Node (11) -
Socket
:: Constants (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (11)
- >> (11)
-
IPPROTO
_ NONE (22) -
IPV6
_ NEXTHOP (22) -
NEWS for Ruby 3
. 0 . 0 (4) - Numeric (11)
-
V
_ ERR _ ERROR _ IN _ CRL _ NEXT _ UPDATE _ FIELD (11) - [] (11)
-
add
_ status (11) - debug (11)
- disasm (11)
- disassemble (11)
- empty? (11)
- feed (11)
- find (22)
-
flush
_ next _ in (11) -
flush
_ next _ out (11) - getpeereid (11)
-
has
_ next? (11) - lambda (17)
- load (14)
- loop (18)
- next (99)
- next! (11)
-
next
_ day (11) -
next
_ element (11) -
next
_ float (10) -
next
_ month (11) -
next
_ sibling (11) -
next
_ sibling _ node (11) -
next
_ update (11) -
next
_ values (11) -
next
_ wait (6) -
next
_ year (11) - parse (11)
- peek (11)
-
peek
_ values (11) - pred (11)
-
prev
_ float (10) -
primitive
_ errinfo (11) - proc (18)
- produce (5)
- reason (11)
- result (11)
- rewind (22)
-
rexml
/ parsers / pullparser (11) -
ruby 1
. 8 . 4 feature (11) - status (11)
- succ (88)
- succ! (11)
- sym (11)
- then (12)
-
to
_ a (11) -
yield
_ self (14) - 制御構造 (11)
検索結果
先頭5件
-
Fiddle
:: Handle :: NEXT -> Fiddle :: Handle (27417.0) -
RTLD_NEXT で表わされる擬似ハンドルを表します。
...RTLD_NEXT で表わされる擬似ハンドルを表します。
詳しくは dlsym(3) を参照してください。... -
OpenSSL
:: X509 :: V _ ERR _ ERROR _ IN _ CRL _ NEXT _ UPDATE _ FIELD -> Integer (15601.0) -
CRL の nextUpdate フィールドの値が不正である ことを意味します。
...CRL の nextUpdate フィールドの値が不正である
ことを意味します。
OpenSSL::X509::Store#error や
OpenSSL::X509::StoreContext#error のエラーコードとして
使われます。... -
REXML
:: Child # next _ sibling -> REXML :: Node (15513.0) -
次の隣接ノードを返します。
...次の隣接ノードを返します。
REXML::Node#next_sibling_node の別名です。
@see REXML::Child#next_sibling=... -
REXML
:: Node # next _ sibling _ node -> REXML :: Node | nil (15501.0) -
次の兄弟ノードを返します。
次の兄弟ノードを返します。
次の兄弟ノードが存在しない場合(ノードがルートである場合や、
最後のノードである場合)は nil を返します。 -
REXML
:: Element # next _ element -> Element | nil (15413.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
:: Parsers :: PullParser # has _ next? -> bool (15401.0) -
未処理のイベントが残っている場合に真を返します。
...未処理のイベントが残っている場合に真を返します。
@see REXML::Parsers::PullParser#empty?... -
Float
# next _ float -> Float (12635.0) -
浮動小数点数で表現可能な self の次の値を返します。
...現可能な 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.000000000000......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.......47ae147ae147cp-7 0.010000000000000002
# 0x1.47ae147ae147dp-7 0.010000000000000004
# 0x1.47ae147ae147ep-7 0.010000000000000005
# 0x1.47ae147ae147fp-7 0.010000000000000007
# 0x1.47ae147ae148p-7 0.010000000000000009
# 0x1.47ae147ae1481p-7 0.01000000000000001
# 0x1.47ae147ae1482p-7 0... -
Enumerator
# next _ values -> Array (12575.0) -
「次」のオブジェクトを配列で返します。
...クトを配列で返します。
Enumerator#next とほぼ同様の挙動をします。終端まで到達した場合は
StopIteration 例外を発生させます。
このメソッドは、
yield
と
yield nil
を区別するために使えます。
next メソッドによる外部列挙......O#each_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_v......ues
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
## yield args next_values next
# yield [] nil
# yield 1 [1] 1
# yield 1, 2 [1, 2] [1, 2]
# yie... -
Date
# next _ year(n = 1) -> Date (12455.0) -
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#>> も参照し... -
Enumerator
# next -> object (12437.0) -
「次」のオブジェクトを返します。
...す。
列挙が既に最後へ到達している場合は、
StopIteration 例外を発生します。このとき列挙状態は変化しません。
つまりもう一度 next を呼ぶと再び例外が発生します。
next メソッドによる外部列挙の状態は他のイテレータメ......#each_line のようにおおもとの列挙メカニズムが副作用を
伴っている場合には影響があり得ます。
@raise StopIteration 列挙状態が既に最後へ到達しているとき
@see Enumerator#rewind
//emlist[例1][ruby]{
str = "xyz"
enum = str.each_byte
str.bytesize.......mes do
puts 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 e...