1

Is there a way to append something to file using generator's inject_into_file? It has to get a :before or :after parameter but what should I pass to just append something?

pmichna
  • 4,800
  • 13
  • 53
  • 90

1 Answers1

4

Please use append_to_file

append_to_file "file.rb" do 
  "hello"
end
ytbryan
  • 2,644
  • 31
  • 49