abstract class Athena::Console::Output
- Athena::Console::Output
- Reference
- Object
Overview
Common base implementation of ACON::Output::Interface
.
Included Modules
Direct Known Subclasses
Defined in:
helper/progress_bar.croutput/console_output.cr
output/output.cr
Constructors
Instance Method Summary
-
#decorated=(decorated : Bool) : Nil
Sets if printed messages should be decorated.
-
#decorated? : Bool
Returns
true
if printed messages should have their decorations applied. -
#formatter : ACON::Formatter::Interface
Returns the
ACON::Formatter::Interface
used byself
. -
#formatter=(formatter : ACON::Formatter::Interface) : Nil
Sets the
ACON::Formatter::Interface
used byself
. -
#print(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
:inherit:
-
#print(message : _, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
:inherit:
-
#print(*messages : String) : Nil
:inherit:
-
#puts(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
:inherit:
-
#puts(message : _, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil
:inherit:
-
#puts(*messages : String) : Nil
:inherit:
-
#verbosity : ACON::Output::Verbosity
Returns the minimum
ACON::Output::Verbosity
required for a message to be printed. -
#verbosity=(verbosity : ACON::Output::Verbosity) : Nil
Set the minimum
ACON::Output::Verbosity
required for a message to be printed.
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
Instance Method Detail
Returns true
if printed messages should have their decorations applied.
I.e. ACON::Formatter::OutputStyleInterface
.
Sets the ACON::Formatter::Interface
used by self
.
:inherit:
:inherit:
:inherit:
:inherit:
Returns the minimum ACON::Output::Verbosity
required for a message to be printed.
Set the minimum ACON::Output::Verbosity
required for a message to be printed.