Do not use unneded toplevel constant reference

This commit is contained in:
Markus Schirp 2013-06-27 23:27:36 +02:00
parent 0c00cb19f7
commit 350e2a8a73

View file

@ -35,7 +35,7 @@ module Mutant
# @api private
#
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)
end
end