Me surge un problema en la parte:
Código
elsif(ARGV[0])=="-f"
featuring()
Código:
`block in featuring': undefined method
`+' for nil:NilClass (NoMethodError)
Me dice que no he definido el método, ¿Porque es tán cruel conmigo?

Código
# -*- coding: UTF-8 -*-
# Métodos
def reset()
renamed = 0
total = -1
end
def resultado()
puts "Procesados: #{total} archivos"
puts "Renombrados: #{renamed} archivos"
end
def featuring()
Find.find(ARGV[1].gsub("\\", "/")) { |path|
path = path.encode('utf-8')
if path[" ft. "] then
File.rename(path, path.gsub(" ft. ", " feat. "))
rename += 1
end
total += 1
}
end
# Argumentos
if (ARGV[0])==()
help()
elsif(ARGV[0])=="/?"
help()
elsif(ARGV[1])==()
print "\n ERROR".red.bold + " | Debe introducir una ruta...\n\n"
help()
elsif(ARGV[0])=="-f"
reset()
featuring()
resultado()
end


 
  




 Autor
 Autor
		




 En línea
									En línea
								









 
						