Fix style in Mutant::Color
This commit is contained in:
parent
6bdbdb719e
commit
b087a6e4d8
1 changed files with 5 additions and 3 deletions
|
@ -27,7 +27,8 @@ module Mutant
|
||||||
"\e[#{@code}m#{text}\e[0m"
|
"\e[#{@code}m#{text}\e[0m"
|
||||||
end
|
end
|
||||||
|
|
||||||
NONE = Class.new(self) do
|
Mutant.singleton_subclass_instance('NONE', self) do
|
||||||
|
|
||||||
# Format null color
|
# Format null color
|
||||||
#
|
#
|
||||||
# @param [String] text
|
# @param [String] text
|
||||||
|
@ -49,13 +50,14 @@ module Mutant
|
||||||
#
|
#
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def initialize(*)
|
def initialize
|
||||||
end
|
end
|
||||||
|
|
||||||
end.new.freeze
|
end
|
||||||
|
|
||||||
RED = Color.new(31)
|
RED = Color.new(31)
|
||||||
GREEN = Color.new(32)
|
GREEN = Color.new(32)
|
||||||
BLUE = Color.new(34)
|
BLUE = Color.new(34)
|
||||||
|
|
||||||
end # Color
|
end # Color
|
||||||
end # Mutant
|
end # Mutant
|
||||||
|
|
Loading…
Add table
Reference in a new issue