class Athena::Console::Output::ConsoleOutput

Overview

An ACON::Output::ConsoleOutputInterface that wraps STDOUT and STDERR.

Included Modules

Defined in:

output/console_output.cr

Constructors

Instance Method Summary

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) : Nil
print(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) #

[View source]

Instance Method Detail

def decorated=(decorated : Bool) : Nil #

:inherit:


[View source]
def error_output : ACON::Output::Interface #

Returns an ACON::Output::Interface that represents STDERR.


[View source]
def error_output=(stderr : ACON::Output::Interface) : Nil #

Sets the ACON::Output::Interface that represents STDERR.


[View source]
def formatter=(formatter : Bool) : Nil #

:inherit:


[View source]
def section : ACON::Output::Section #

:inherit:


[View source]
def stderr=(stderr : ACON::Output::Interface) #

Sets the ACON::Output::Interface that represents STDERR.


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

:inherit:


[View source]