Class: Jstdutil::ColorfulHtml
- Inherits:
-
Object
- Object
- Jstdutil::ColorfulHtml
- Defined in:
- lib/jstdutil/colorful_html.rb
Defined Under Namespace
Modules: Color
Class Method Summary collapse
Class Method Details
.wrap_report(report) ⇒ Object
15 16 17 |
# File 'lib/jstdutil/colorful_html.rb', line 15 def self.wrap_report(report) "<style>.red {color: #c00;} .green {color: #0c0;} .yellow {color: #ff0;} </style><pre>#{report}</pre>" end |