Skip to content

abstract class Athena::Console::Output
inherits Reference #

Common base implementation of ACON::Output::Interface.

Included modules

Athena::Console::Output::Interface

Direct known subclasses

Athena::Console::Output::IO

Constructors#

.new(verbosity : ACON::Output::Verbosity? = :normal, decorated : Bool = false, formatter : ACON::Formatter::Interface? = nil) #

View source

Methods#

#decorated=(decorated : Bool) : Nil #

Sets if printed messages should be decorated.

View source

#decorated? #

Returns true if printed messages should have their decorations applied. I.e. ACON::Formatter::OutputStyleInterface.

View source

#formatter #

Returns the ACON::Formatter::Interface used by self.

View source

#formatter=(formatter : ACON::Formatter::Interface) : Nil #

Sets the ACON::Formatter::Interface used by self.

View source

#print(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

Outputs the provided message. The verbosity and/or output_type parameters can be used to control when and how the message is printed.

View source

#print(message : _, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

:inherit:

View source

#print(*messages : String) : Nil #

:inherit:

View source

#puts(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

Outputs the provided message followed by a new line. The verbosity and/or output_type parameters can be used to control when and how the message is printed.

View source

#puts(message : _, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

:inherit:

View source

#puts(*messages : String) : Nil #

:inherit:

View source

#verbosity #

Returns the minimum ACON::Output::Verbosity required for a message to be printed.

View source

#verbosity=(verbosity : ACON::Output::Verbosity) : Nil #

Set the minimum ACON::Output::Verbosity required for a message to be printed.

View source