Prefer method access over ivar

This commit is contained in:
Tim Chambers 2015-11-16 11:40:28 -08:00
parent 8bddd1c659
commit 79bb25bcaa

View file

@ -11,7 +11,7 @@ module Mutant
# #
# @api private # @api private
def format(text) def format(text)
"\e[#{@code}m#{text}\e[0m" "\e[#{code}m#{text}\e[0m"
end end
NONE = Class.new(self) do NONE = Class.new(self) do