Module: TextDecorator
- Defined in:
- lib/text_decorator.rb,
lib/text_decorator/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.colorize(text, color) ⇒ Object
class Error < StandardError; end # Your code goes here…
Class Method Details
.colorize(text, color) ⇒ Object
class Error < StandardError; end # Your code goes here…
7 8 9 |
# File 'lib/text_decorator.rb', line 7 def self.colorize(text, color) text.colorize(color.to_sym) end |