Use concord to simplify Mutant::Color class

This commit is contained in:
Markus Schirp 2013-12-31 19:38:20 +01:00
parent fda37662b7
commit 714e024ccb

View file

@ -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
#