Ruby 2.7.0 リファレンスマニュアル > ライブラリ一覧 > stringioライブラリ > StringIOクラス > isatty
isatty -> false
何もせず false を返します。