Class: Bloodbath::Utils::Verbose
- Inherits:
-
Object
- Object
- Bloodbath::Utils::Verbose
- Defined in:
- lib/bloodbath/utils/verbose.rb
Constant Summary collapse
- COLORS =
{ red: 31, green: 32, blue: 34, }.freeze
Class Method Summary collapse
Class Method Details
.capture(label) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/bloodbath/utils/verbose.rb', line 13 def capture(label) result = yield return puts """ #{screen("[VERBOSE]")} #{screen("#{label}:", color: :blue)} #{screen(result, color: :red)} """ if verbose? end |