Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > io/consoleライブラリ > IOクラス > iflush
iflush -> self
カーネルの入力バッファをフラッシュします。