Module: LLMBench::Colors
- Defined in:
- lib/llm_bench/colors.rb
Constant Summary collapse
- HEADER =
Colors for different elements
:cyan- SUCCESS =
:green- ERROR =
:red- WARNING =
:yellow- INFO =
:blue- METRIC =
:magenta- HIGHLIGHT =
:light_blue- BORDER =
:white
Class Method Summary collapse
- .border(text) ⇒ Object
- .error(text) ⇒ Object
-
.header(text) ⇒ Object
Predefined color methods.
- .highlight(text) ⇒ Object
- .info(text) ⇒ Object
- .metric(text) ⇒ Object
- .success(text) ⇒ Object
- .warning(text) ⇒ Object
Class Method Details
.border(text) ⇒ Object
46 47 48 |
# File 'lib/llm_bench/colors.rb', line 46 def self.border(text) text.colorize(BORDER) end |
.error(text) ⇒ Object
26 27 28 |
# File 'lib/llm_bench/colors.rb', line 26 def self.error(text) text.colorize(ERROR) end |
.header(text) ⇒ Object
Predefined color methods
18 19 20 |
# File 'lib/llm_bench/colors.rb', line 18 def self.header(text) text.colorize(HEADER) end |
.highlight(text) ⇒ Object
42 43 44 |
# File 'lib/llm_bench/colors.rb', line 42 def self.highlight(text) text.colorize(HIGHLIGHT) end |
.info(text) ⇒ Object
34 35 36 |
# File 'lib/llm_bench/colors.rb', line 34 def self.info(text) text.colorize(INFO) end |
.metric(text) ⇒ Object
38 39 40 |
# File 'lib/llm_bench/colors.rb', line 38 def self.metric(text) text.colorize(METRIC) end |
.success(text) ⇒ Object
22 23 24 |
# File 'lib/llm_bench/colors.rb', line 22 def self.success(text) text.colorize(SUCCESS) end |
.warning(text) ⇒ Object
30 31 32 |
# File 'lib/llm_bench/colors.rb', line 30 def self.warning(text) text.colorize(WARNING) end |