I have an array of strings read from file.
contents = File.readlines('foo.txt')
I can create an some object with string
my_foo = Foo.new("some_text")
I need to make an array of objects Foo made by array of strings contents. How can I do it?