# File lib/thor/util.rb, line 175 def self.convert_constants_to_namespaces(yaml) yaml_changed = false yaml.each do |k, v| next unless v[:constants] && v[:namespaces].nil? yaml_changed = true yaml[k][:namespaces] = v[:constants].map{|c| Thor::Util.namespace_from_thor_class(c)} end yaml_changed end