Class: Formatter
- Inherits:
-
Object
- Object
- Formatter
- Defined in:
- lib/logger.rb
Overview
Provides utility methods for formatting strings
Class Method Summary collapse
-
.string(key, value) ⇒ String
Formats a key-value pair as a string with colored output.
Class Method Details
.string(key, value) ⇒ String
Formats a key-value pair as a string with colored output
86 87 88 |
# File 'lib/logger.rb', line 86 def self.string(key, value) "#{Paint[key, :green]}: #{Paint[value, :blue]}" end |