Do not use unneded toplevel constant reference
This commit is contained in:
parent
0c00cb19f7
commit
350e2a8a73
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def self.constant_lookup(location)
|
def self.constant_lookup(location)
|
||||||
location.gsub(%r(\A::), '').split('::').inject(::Object) do |parent, name|
|
location.gsub(%r(\A::), '').split('::').inject(Object) do |parent, name|
|
||||||
parent.const_get(name)
|
parent.const_get(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue