Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Gem::StreamUI.new

() -> ::Gem::StreamUI
new(in_stream, out_stream, err_stream=$stderr, usetty=true)

Creates a new StreamUI wrapping in_stream for user input, out_stream for standard output, err_stream for error output. If usetty is true then special operations (like asking for passwords) will use the TTY commands to disable character echo.

See also #alert #alert_error also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0