Method: IconGenerator::Error#initialize
- Defined in:
- lib/icon_generator/error.rb
#initialize(message = "Icon generation failed") ⇒ Error
Colors the given error message red and sends it up to Thor::Error’s initialize method.
7 8 9 |
# File 'lib/icon_generator/error.rb', line 7 def initialize( = "Icon generation failed") super(Thor::Shell::Color.new.set_color , :red) end |