class Null
Represents a null output handler that discards all output.
Definitions
def initialize
Initialize a new Null output handler.
Implementation
def initialize
end
def buffered
Create a buffered output handler.
Signature
-
returns
Buffered A new Buffered instance.
Implementation
def buffered
Buffered.new(nil)
end
attr :options
Signature
-
attribute
Hash, nil Optional options (unused).
def append(buffer)
Append chunks from a buffer (no-op).
Signature
-
parameter
bufferBuffered The buffer to append from.
Implementation
def append(buffer)
end
def indent
Increase indentation (no-op).
Implementation
def indent
end
def outdent
Decrease indentation (no-op).
Implementation
def outdent
end
def indented
Execute a block with indentation (no-op, just yields).
Signature
-
yields
{...} The block to execute.
Implementation
def indented
yield
end
def write(*arguments)
Write output (no-op).
Signature
-
parameter
argumentsArray The arguments to write.
Implementation
def write(*arguments)
# Do nothing.
end
def puts(*arguments)
Write output followed by a newline (no-op).
Signature
-
parameter
argumentsArray The arguments to write.
Implementation
def puts(*arguments)
# Do nothing.
end