From 350e2a8a73e8c44d314a06c948c867ba42f9b36b Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Thu, 27 Jun 2013 23:27:36 +0200 Subject: [PATCH] Do not use unneded toplevel constant reference --- lib/mutant/cli/classifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/cli/classifier.rb b/lib/mutant/cli/classifier.rb index 58d1dacc..6a55e083 100644 --- a/lib/mutant/cli/classifier.rb +++ b/lib/mutant/cli/classifier.rb @@ -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