In Ruby, you can apply a map function to every element of an array:
@files.map { |f| f.read) }
For which there is the syntactic sugar:
You can do this
@files.map(&method(:read))
But be aware though about performance.