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
65 66 67 |
# File 'lib/logger.rb', line 65 def self.string(key, value) "#{Paint[key, :green]} #{Paint[value, :blue]}" end |