struct

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))

Constructors

new(output : IO)
Source

Instance methods

apply(program : Program) : Nil

Apply this option to a program instance.

Source