struct

Athena::Console::Formatter::OutputStyle

Inherits Athena::Console::Formatter::OutputStyleInterface / Struct / Value / Object

Default implementation of ACON::Formatter::OutputStyleInterface.

Constructors

new(foreground : Colorize::Color | String = :default, background : Colorize::Color | String = :default, options : Colorize::Mode = :none)
Source

Instance methods

add_option(option : Colorize::Mode) : Nil

Adds a text mode to self.

Source
add_option(option : String) : Nil

:inherit:

Source
apply(text : String) : String

Applies self to the provided text.

Source
background=(background : Colorize::Color)

Sets the background color of self.

Source
background=(color : String)

:inherit:

Source
foreground=(foreground : Colorize::Color)

Sets the foreground color of self.

Source
foreground=(foreground : String)

:inherit:

Source
href=(href : String | Nil)

Sets the href that self should link to.

Source
options=(options : Colorize::Mode)

:inherit:

Source
remove_option(option : Colorize::Mode) : Nil

Removes a text mode to self.

Source
remove_option(option : String) : Nil

:inherit:

Source