Use concord to simplify Mutant::Color class
This commit is contained in:
parent
fda37662b7
commit
714e024ccb
1 changed files with 1 additions and 13 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue