Module: SnippetCli::FileWriter
- Defined in:
- lib/snippet_cli/file_writer.rb
Overview
Shared file-writing interface for all Espanso file writers. Centralises the write operation so file-safety behaviors (e.g. atomic write) need only be added here.
Class Method Summary collapse
Class Method Details
.write(path, content) ⇒ Object
8 9 10 |
# File 'lib/snippet_cli/file_writer.rb', line 8 def self.write(path, content) File.write(path, content) end |