module ViteRuby::CLI::FileUtils
def _inject_line_after(path, target, contents, finder)
- Api: - private
Other tags:
- Since: - 1.2.11
def _inject_line_after(path, target, contents, finder) content = File.readlines(path) i = finder.call(content, path, target) content.insert(i + 1, "#{ contents }\n") write(path, content) end