class Athena::Console::Output::Null

Overview

An ACON::Output::Interface that does not output anything, such as for tests.

Included Modules

Defined in:

output/null.cr

Instance Method Summary

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=

Instance Method Detail

def decorated=(decorated : Bool) : Nil #

Sets if printed messages should be decorated.


[View source]
def decorated? : Bool #

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


[View source]
def formatter : ACON::Formatter::Interface #

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


[View source]
def formatter=(formatter : ACON::Formatter::Interface) : Nil #

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


[View source]
def print(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

:inherit:


[View source]
def print(message, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

[View source]
def puts(message : String | Enumerable(String), verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

:inherit:


[View source]
def puts(message, verbosity : ACON::Output::Verbosity = :normal, output_type : ACON::Output::Type = :normal) : Nil #

[View source]
def verbosity : ACON::Output::Verbosity #

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


[View source]
def verbosity=(verbosity : ACON::Output::Verbosity) : Nil #

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


[View source]