module ViteRuby::CLI::FileUtils
def write(path, *content)
- Api: - private
Other tags:
- Since: - 1.2.11
def write(path, *content) mkdir_p(path) File.open(path, File::CREAT | File::WRONLY | File::TRUNC) do |file| file.write(Array(content).flatten.join) end end