このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
read(*args) -> nil
gets(*args) -> nil
常に nil を返します。