Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > generatorライブラリ > Generatorクラス > next?

instance method Generator#next?

next? -> bool

次の要素が存在するなら真を返します。

class Generator