module Lemonade::FormattingHelper
Extended Modules
Defined in:
lemonade/formatting_helper.crConstant Summary
-
RAW_STUFF =
{fg: {"foreground", 'F'}, bg: {"background", 'B'}, line: {"underline & overline attributes", 'U'}}
Instance Method Summary
-
#bg(block, color = ColorReset)
Formats block with background color.
-
#bg_color(color)
Set background color.
-
#bg_color_reset
Reset "background" color.
-
#disable_overline
Disables attribute overline
-
#disable_underline
Disables attribute underline
-
#enable_overline
Enables attribute overline
-
#enable_underline
Enables attribute underline
-
#fg(block, color = ColorReset)
Formats block with foreground color.
-
#fg_color(color)
Set foreground color.
-
#fg_color_reset
Reset "foreground" color.
-
#fgbg(block, fg fg_color, bg bg_color)
Formats block with foreground fg color, and background bg color.
-
#line_color(color)
Set underline & overline attributes color.
-
#line_color_reset
Reset "underline & overline attributes" color.
-
#ol(block, color = ColorReset)
Overlines block, colored using color.
-
#toggle_overline
Toggles attribute overline
-
#toggle_underline
Toggles attribute underline
-
#ul(block, color = ColorReset)
Underlines block, colored using color.
Instance Method Detail
def fgbg(block, fg fg_color, bg bg_color)
#
Formats block with foreground fg color, and background bg color.