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.crInstance Method Summary
-
#decorated=(decorated : Bool)
Sets if output messages should be decorated.
-
#decorated? : Bool
Returns
true
if output messages will be decorated, otherwisefalse
. -
#format(message : String | Nil) : String
Formats the provided message according to the stored styles.
-
#has_style?(name : String) : Bool
Returns
true
ifself
has a style with the provided name, otherwisefalse
. -
#set_style(name : String, style : ACON::Formatter::OutputStyleInterface) : Nil
Assigns the provided style to the provided name.
-
#style(name : String) : ACON::Formatter::OutputStyleInterface
Returns an
ACON::Formatter::OutputStyleInterface
with the provided name.
Instance Method Detail
Returns true
if output messages will be decorated, otherwise false
.
Formats the provided message according to the stored styles.
Returns true
if self
has a style with the provided name, otherwise false
.
Assigns the provided style to the provided name.
Returns an ACON::Formatter::OutputStyleInterface
with the provided name.