An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

file_overwrite

This class provides a Ruby-oriented scheme to safely overwrite an existing file, leaving a backup file unless specified otherwise. It writes a temporary file first, which is renamed to the original file in one action. It accepts a block like some IO class-methods (e.g., each_line) and chaining like String methods (e.g., sub and gsub).

Ecosystem
gem.coop
Latest Release
1.0
over 7 years ago
Versions
2
Downloads
4,166 total
Links
Registry gem.coop
Homepage Homepage
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:gem/file_overwrite?repository_url=https://gem.coop
spec
License MIT
First Release over 7 years ago
Last Synced 2 days ago