abstract class Athena::Console::Output

Overview

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

Included Modules

Direct Known Subclasses

Defined in:

helper/progress_bar.cr
output/console_output.cr
output/output.cr

Constructors

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=

Constructor Detail

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

[View source]

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 #

:inherit:


[View source]
def print(*messages : String) : Nil #

:inherit:


[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 #

:inherit:


[View source]
def puts(*messages : String) : Nil #

:inherit:


[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]