Module: GemHadar::SimpleCov::WarnModule
- Included in:
- GemHadar::SimpleCov, ContextFormatter
- Defined in:
- lib/gem_hadar/simplecov.rb
Instance Method Summary collapse
-
#warn(*msgs) ⇒ Object
The warn method displays warning messages using orange colored output.
Instance Method Details
#warn(*msgs) ⇒ Object
The warn method displays warning messages using orange colored output.
This method takes an array of message strings, applies orange color formatting to each message, and then passes them to the superclass’s warn method for display. The uplevel: 1 option ensures that the warning originates from the caller’s context rather than from within this method itself.
20 21 22 23 |
# File 'lib/gem_hadar/simplecov.rb', line 20 def warn(*msgs) msgs.map! { |m| color(208) { m } } super(*msgs, uplevel: 1) end |