Use frozen constant instead of unmutated mutable literal

This commit is contained in:
Markus Schirp 2014-07-06 03:43:23 +00:00
parent 6a7b8bca52
commit 5e7bfc0812
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ module Mutant
# @api private
#
def namespace
match[__method__] || ''
match[__method__] || EMPTY_STRING
end
end # Recursive

View file

@ -12,7 +12,7 @@ module Mutant
gvasgn: '$',
cvasgn: '@@',
ivasgn: '@',
lvasgn: ''
lvasgn: EMPTY_STRING
}
MAP = IceNine.deep_freeze(