Term2::WithOutput
Inherits Term2::ProgramOption < Struct < Value < Object
Configures a custom output destination.
# Capture output for testing
output = IO::Memory.new
options = Term2::ProgramOptions.new(Term2::WithOutput.new(output))
Inherits Term2::ProgramOption < Struct < Value < Object
Configures a custom output destination.
# Capture output for testing
output = IO::Memory.new
options = Term2::ProgramOptions.new(Term2::WithOutput.new(output))