Module: Ferrum::Log::Paint
- Included in:
- Ferrum::Log, Annotated, Default
- Defined in:
- lib/ferrum/log/paint.rb,
sig/ferrum/log/paint.rbs
Overview
Wraps text in basic ANSI colors, which terminal themes adapt to light
and dark backgrounds, when the includer's @color is set.
Constant Summary collapse
- COLORS =
{ bold: 1, dim: 2, red: 31, green: 32, yellow: 33, magenta: 35, cyan: 36 }.freeze
Instance Method Summary collapse
-
#color? ⇒ Boolean
Whether text gets colored.
Instance Method Details
#color? ⇒ Boolean
Whether text gets colored.
15 16 17 |
# File 'lib/ferrum/log/paint.rb', line 15 def color? @color end |