class Wrapper
A generic wrapper for output handling.
Definitions
def initialize(delegate, **options)
Create a new wrapper output.
Signature
-
parameter
delegate
Console::Output
The output to delegate to.
-
parameter
options
Hash
Additional options to customize the output.
Implementation
def initialize(delegate, **options)
@delegate = delegate
end
attr :delegate
Signature
-
attribute
Console::Output
The output to delegate to.
def last_output
The last output is the last output of the delegate.
Implementation
def last_output
@delegate.last_output
end
def verbose!(value = true)
Set the verbose flag for the delegate.
Signature
-
parameter
value
Boolean
The new value.
Implementation
def verbose!(value = true)
@delegate.verbose!(value)
end
def call(...)
Invoke the delegate.
Implementation
def call(...)
@delegate.call(...)
end