Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/z2monitor/misc.rb
Instance Method Summary collapse
Instance Method Details
#color_by_severity(level = 0) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/z2monitor/misc.rb', line 21 def color_by_severity( level = 0 ) case level when 5; self.bold.red when 4; self.yellow when 3; self.green when 2; self.cyan when 1; self.bold.white else self end end |