208件ヒット
[201-208件を表示]
(0.100秒)
ライブラリ
- ビルトイン (208)
クラス
- Enumerator (96)
-
Enumerator
:: Lazy (48) - Object (48)
- StopIteration (12)
モジュール
- Enumerable (4)
キーワード
- compact (4)
- each (48)
-
enum
_ for (48) - feed (12)
-
next
_ values (12) - peek (12)
-
peek
_ values (12) - result (12)
検索結果
-
Enumerator
# feed(obj) -> nil (25.0) -
Enumerator 内部の yield が返す値を設定します。
...new
def o.each
x = yield # (2) blocks
p x # (5) => "foo"
x = yield # (6) blocks
p x # (8) => nil
x = yield # (9) blocks
p x # not reached w/o another e.next
end
e = o.to_enum
e.next # (1)
e.feed "foo"......# (3)
e.next # (4)
e.next # (7)
# (10)
//}
@param obj Enumerator 内部の yield が返す値
@raise TypeError すでに値をこのメソッドでセットしている場合に発生します...