From 714e024ccbcc0016f685714aaa0ab2ee18ec0397 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Tue, 31 Dec 2013 19:38:20 +0100 Subject: [PATCH] Use concord to simplify Mutant::Color class --- lib/mutant/color.rb | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/mutant/color.rb b/lib/mutant/color.rb index 8ae89714..d1fe5b2b 100644 --- a/lib/mutant/color.rb +++ b/lib/mutant/color.rb @@ -3,19 +3,7 @@ module Mutant # Class to colorize strings class Color - include Adamantium::Flat - - # Initialize color object - # - # @param [Fixnum] code - # - # @return [undefined] - # - # @api private - # - def initialize(code) - @code = code - end + include Adamantium::Flat, Concord.new(:color) # Format text with color #