var names = %w( a.txt b.txt c.txt ) names.map{ File(_) }.each { |file| say file.edit { |line| line.gsub("Goodbye London!", "Hello New York!") } }
Last updated 1 year ago