Prefer method access over ivar
This commit is contained in:
parent
8bddd1c659
commit
79bb25bcaa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue