class Athena::Console::Output::ConsoleOutput
- Athena::Console::Output::ConsoleOutput
- Athena::Console::Output::IO
- Athena::Console::Output
- Reference
- Object
Overview
An ACON::Output::ConsoleOutputInterface
that wraps STDOUT
and STDERR
.
Included Modules
Defined in:
output/console_output.crConstructors
Instance Method Summary
-
#decorated=(decorated : Bool) : Nil
:inherit:
-
#error_output : ACON::Output::Interface
Returns an
ACON::Output::Interface
that representsSTDERR
. -
#error_output=(stderr : ACON::Output::Interface) : Nil
Sets the
ACON::Output::Interface
that representsSTDERR
. -
#formatter=(formatter : Bool) : Nil
:inherit:
-
#section : ACON::Output::Section
:inherit:
-
#stderr=(stderr : ACON::Output::Interface)
Sets the
ACON::Output::Interface
that representsSTDERR
. -
#verbosity=(verbosity : ACON::Output::Verbosity) : Nil
:inherit:
Instance methods inherited from module Athena::Console::Output::ConsoleOutputInterface
error_output : ACON::Output::Interface
error_output,
error_output=(stderr : ACON::Output::Interface) : Nil
error_output=,
section : ACON::Output::Section
section
Instance methods inherited from class Athena::Console::Output::IO
io : ::IO
io,
io=(io : ::IO)
io=,
to_s(*args, **options)to_s(*args, **options, &) to_s
Constructor methods inherited from class Athena::Console::Output::IO
new(io : ::IO, verbosity : ACON::Output::Verbosity | Nil = :normal, decorated : Bool | Nil = nil, formatter : ACON::Formatter::Interface | Nil = nil)
new
Instance methods inherited from class Athena::Console::Output
decorated=(decorated : Bool) : Nil
decorated=,
decorated? : Bool
decorated?,
formatter : ACON::Formatter::Interface
formatter,
formatter=(formatter : ACON::Formatter::Interface) : Nil
formatter=,
print(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nilprint(message : _, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
print(*messages : String) : Nil print, puts(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
puts(message : _, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
puts(*messages : String) : Nil puts, verbosity : ACON::Output::Verbosity verbosity, verbosity=(verbosity : ACON::Output::Verbosity) : Nil verbosity=
Constructor methods inherited from class Athena::Console::Output
new(verbosity : ACON::Output::Verbosity | Nil = :normal, decorated : Bool = false, formatter : ACON::Formatter::Interface | Nil = nil)
new
Instance methods inherited from module Athena::Console::Output::Interface
decorated=(decorated : Bool) : Nil
decorated=,
decorated? : Bool
decorated?,
formatter : ACON::Formatter::Interface
formatter,
formatter=(formatter : ACON::Formatter::Interface) : Nil
formatter=,
print(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
print,
puts(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
puts,
verbosity : ACON::Output::Verbosity
verbosity,
verbosity=(verbosity : ACON::Output::Verbosity) : Nil
verbosity=
Constructor Detail
def self.new(verbosity : ACON::Output::Verbosity = :normal, decorated : Bool | Nil = nil, formatter : ACON::Formatter::Interface | Nil = nil)
#
Instance Method Detail
def error_output : ACON::Output::Interface
#
Returns an ACON::Output::Interface
that represents STDERR
.
def error_output=(stderr : ACON::Output::Interface) : Nil
#
Sets the ACON::Output::Interface
that represents STDERR
.
def stderr=(stderr : ACON::Output::Interface)
#
Sets the ACON::Output::Interface
that represents STDERR
.