mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 00:46:26 +08:00
The C extension defines both tty? and isatty in IO::platform_tty, so they stay the same method once io/console is loaded. The JRuby backends' PlatformTty only defined tty?, so after https://github.com/ruby/io-console/commit/f686b8305 loading io/console left IO#isatty as the original method, which ruby/spec's "IO#isatty is an alias of IO#tty?" checks. https://github.com/ruby/io-console/commit/77d675c69e