I am new to ruby and make a lot of mistakes, so I hope people who are experienced in ruby can share a bit of knowledge. 
I can't figure out how I can make ruby save the text into a txt file that a method `all` writes. 

```
class generator
  def all
    puts "i want to save this text into a txt file"
  end
end
new_gen = generator.new
new_gen.all

my_file = File.new("Story.txt", "a+")
my_file.puts("all")
my_file.puts("\n")
my_file.close

```

I tried everything, but the txt file either has the "all" in it or it's completely blank. Any ideas? I also tried `my_file.puts(all)` and `my_file.puts(new_gen.all)`.