Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法使用生成器将某些内容附加到文件中inject_into_file?它必须得到一个:before或:after参数,但我应该传递什么来附加一些东西?
inject_into_file
:before
:after
请使用append_to_file
append_to_file "file.rb" do "hello" end