module Athena::Console::Formatter::Interface

Overview

A container that stores and applies ACON::Formatter::OutputStyleInterface. Is responsible for formatting outputted messages as per their styles.

Direct including types

Defined in:

formatter/interface.cr

Instance Method Summary

Instance Method Detail

abstract def decorated=(decorated : Bool) #

Sets if output messages should be decorated.


[View source]
abstract def decorated? : Bool #

Returns true if output messages will be decorated, otherwise false.


[View source]
abstract def format(message : String | Nil) : String #

Formats the provided message according to the stored styles.


[View source]
abstract def has_style?(name : String) : Bool #

Returns true if self has a style with the provided name, otherwise false.


[View source]
abstract def set_style(name : String, style : ACON::Formatter::OutputStyleInterface) : Nil #

Assigns the provided style to the provided name.


[View source]
abstract def style(name : String) : ACON::Formatter::OutputStyleInterface #

Returns an ACON::Formatter::OutputStyleInterface with the provided name.


[View source]