# File lib/thor/util.rb, line 40 def self.constant_from_thor_path(str) make_constant(to_constant(str)) rescue NameError => e raise e unless e.message =~ /^uninitialized constant (.*)$/ raise Error, "There was no available namespace `#{str}'." end