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
|
module Mutant
|
||||||
# Class to colorize strings
|
# Class to colorize strings
|
||||||
class Color
|
class Color
|
||||||
include Adamantium::Flat
|
include Adamantium::Flat, Concord.new(:color)
|
||||||
|
|
||||||
# Initialize color object
|
|
||||||
#
|
|
||||||
# @param [Fixnum] code
|
|
||||||
#
|
|
||||||
# @return [undefined]
|
|
||||||
#
|
|
||||||
# @api private
|
|
||||||
#
|
|
||||||
def initialize(code)
|
|
||||||
@code = code
|
|
||||||
end
|
|
||||||
|
|
||||||
# Format text with color
|
# Format text with color
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue