11件ヒット
[1-11件を表示]
(0.281秒)
ライブラリ
- ビルトイン (11)
検索結果
-
Enumerator
# next -> object (8008.0) -
「次」のオブジェクトを返します。
...最後へ到達しているとき
@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][ruby]{
str = "xyz"
enum = str.each_byte
begin
puts enum.next while true
rescue St...