struct Athena::Console::Formatter::OutputStyle
inherits Struct
#
Default implementation of ACON::Formatter::OutputStyleInterface
.
Included modules
Athena::Console::Formatter::OutputStyleInterface
Constructors#
.new(foreground : Colorize::Color | String = :default, background : Colorize::Color | String = :default, options : Colorize::Mode = :none)
#
Methods#
#add_option(option : Colorize::Mode) : Nil
#
Adds a text mode to self
.
#add_option(option : String) : Nil
#
:inherit:
#apply(text : String) : String
#
Applies self
to the provided text.
#background=(background : Colorize::Color)
#
Sets the background color of self
.
#background=(color : String)
#
:inherit:
#foreground=(foreground : Colorize::Color)
#
Sets the foreground color of self
.
#foreground=(foreground : String)
#
:inherit:
#href=(href : String | Nil)
#
Sets the href
that self
should link to.
#options=(options : Colorize::Mode)
#
:inherit:
#remove_option(option : Colorize::Mode) : Nil
#
Removes a text mode to self
.
#remove_option(option : String) : Nil
#
:inherit: