From 79bb25bcaa78633fe6ab114268e5564d1680a5c1 Mon Sep 17 00:00:00 2001 From: Tim Chambers Date: Mon, 16 Nov 2015 11:40:28 -0800 Subject: [PATCH] Prefer method access over ivar --- lib/mutant/color.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/color.rb b/lib/mutant/color.rb index 8d1c1636..99874410 100644 --- a/lib/mutant/color.rb +++ b/lib/mutant/color.rb @@ -11,7 +11,7 @@ module Mutant # # @api private def format(text) - "\e[#{@code}m#{text}\e[0m" + "\e[#{code}m#{text}\e[0m" end NONE = Class.new(self) do